refactor: remove all color-named functions (#9) #25
This file contains 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: Build and test | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- .editorconfig | |
- .gitattributes | |
- .gitignore | |
- LICENSE | |
- README.md | |
- .github/** | |
- '!.github/workflows/build-and-test.yml' | |
- .vscode/** | |
- images/** | |
pull_request: | |
paths-ignore: | |
- .editorconfig | |
- .gitattributes | |
- .gitignore | |
- LICENSE | |
- README.md | |
- .github/** | |
- '!.github/workflows/build-and-test.yml' | |
- .vscode/** | |
- images/** | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-and-test: | |
name: Build & test w/zig | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: ['master'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup zig | |
uses: goto-bus-stop/setup-zig@v2 | |
with: | |
version: ${{ matrix.version }} | |
- name: Lint | |
run: zig fmt --check . | |
- name: Build and test | |
run: zig build test | |
- name: Install kcov | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y kcov | |
- name: Generate coverage reports | |
run: kcov $PWD/coverage ./zig-cache/o/*/test | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
directory: ./coverage/ | |
verbose: true |