refactor: replace os.ErrNotExist with fs.ErrNotExist #185
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
| --- | |
| name: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| test: | |
| name: Run tests | |
| runs-on: ubuntu-latest | |
| if: ${{ !startsWith(github.event.head_commit.message, 'docs:') }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: ./go.mod | |
| - name: Run go vet and check for vulnerabilities | |
| run: | | |
| make audit | |
| - name: Unit tests | |
| run: | | |
| make test | |
| - name: Build the app | |
| run: | | |
| make build | |
| - name: Check that we didn't lose anything | |
| run: diff <(cat testlogs/* | ./dist/latest/logalize | sed 's/\x1b\[[0-9;]*m//g') <(cat testlogs/*) | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |