diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..2ffeedf --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: 'test' +on: ['push', 'pull_request'] + +jobs: + # Uncomment to get a debug shell. + # debug: {runs-on: 'ubuntu-latest', steps: [{uses: 'actions/checkout@v4'}, {uses: 'mxschmitt/action-tmate@v3'}]} + + test: + name: 'test (linux)' + runs-on: 'ubuntu-latest' + steps: + - uses: 'actions/checkout@v4' + - name: 'test (linux)' + run: | + go test -race ./... + + staticcheck: + name: 'staticcheck' + runs-on: 'ubuntu-latest' + steps: + - uses: 'actions/checkout@v4' + - uses: 'dominikh/staticcheck-action@v1.3.1' + with: {version: '2024.1'} diff --git a/go.mod b/go.mod index 1e60caf..4c3e724 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module zgo.at/uni/v2 -go 1.21 +go 1.21.13 require ( zgo.at/runewidth v0.1.0