Skip to content

Commit

Permalink
add CI (lint / test)
Browse files Browse the repository at this point in the history
close: #2
  • Loading branch information
yukinagae committed Aug 31, 2024
1 parent e3bfa48 commit 0ba1219
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
pull_request:
paths:
- 'plugins/**'

jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: Run lints
run: make tidy

test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: Run tests
run: make test

0 comments on commit 0ba1219

Please sign in to comment.