Merge pull request #9 from spaceapi-community/dependabot/github_actio… #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| name: CI | |
| jobs: | |
| test: | |
| name: run tests | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '^1.13.0' | |
| - name: Run tests | |
| run: go test | |
| fmt: | |
| name: check code formatting with gofmt | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '^1.13.0' | |
| - name: run gofmt | |
| run: diff -u <(echo -n) <(gofmt -d ./) |