Skip to content

Commit

Permalink
Set up GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
qnighy committed Aug 16, 2024
1 parent d296259 commit 5325d9e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test

on:
push:
pull_request:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.13', '1.23.x']
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install nkf for comparison
run: sudo apt-get install nkf
- name: Test
run: go test ./...
- name: Check formatting
run: |
go fmt ./...
git diff --exit-code

0 comments on commit 5325d9e

Please sign in to comment.