Skip to content

Commit

Permalink
add workflows (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunNishimura committed Mar 23, 2024
1 parent 882b1c0 commit f186170
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: lint

on:
push:
branches:
- '**'

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: 1.22
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.4.0
with:
version: latest
args: --timeout=10m
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@v2
- name: setup Golang
uses: actions/setup-go@v2
with:
go-version: 1.22
- name: get dependencies
run: go get -v -t -d ./...
- name: test code
run: go test ./...

0 comments on commit f186170

Please sign in to comment.