Skip to content

Commit

Permalink
Merge pull request #1 from JunNishimura/feature/github_actions
Browse files Browse the repository at this point in the history
Add GitHub Actions
  • Loading branch information
JunNishimura authored Sep 18, 2024
2 parents b2620a9 + eef77de commit 16e12a8
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: lint

on:
push:
branches:
- '**'

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.23
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/[email protected]
with:
version: latest
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: test

on:
push:
branches:
- '**'

jobs:
test:
name: test
strategy:
fail-fast: false
max-parallel: 3
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup Golang
uses: actions/setup-go@v4
with:
go-version: 1.23
- name: get dependencies
run: go get -v -t -d ./...
- name: test code
run: go test ./...

0 comments on commit 16e12a8

Please sign in to comment.