Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: replace os.ErrNotExist with fs.ErrNotExist #185

refactor: replace os.ErrNotExist with fs.ErrNotExist

refactor: replace os.ErrNotExist with fs.ErrNotExist #185

Workflow file for this run

---
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 }}