Skip to content

Commit

Permalink
Merge pull request #4 from wdhongtw/chore-ci
Browse files Browse the repository at this point in the history
Add CI description file
  • Loading branch information
wdhongtw authored Feb 4, 2025
2 parents 0a9ceb7 + 45f8fd4 commit b9b7a9c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: check-code

on:
push:
branches: [ "*" ]
pull_request:
branches: [ master ]

jobs:

"check":
runs-on: ubuntu-24.04
steps:

- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'

- name: Run tests
run: go test -v ./...

- name: Run linter
run: go vet ./...

0 comments on commit b9b7a9c

Please sign in to comment.