feat: Validation of AST #135
Workflow file for this run
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: Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
name: "Build & Run" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 | |
- name: Install Nix | |
uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27 | |
- name: Build then run | |
run: | | |
nix-shell --run '${{ github.workspace }}/bin/build_release.sh' | |
${{ github.workspace }}/filc | |
unit-tests: | |
name: "Unit tests" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 | |
- name: Install Nix | |
uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27 | |
- name: Run tests | |
run: nix-shell --run '${{ github.workspace }}/bin/run_unit_tests.sh' | |
- name: Build coverage | |
run: nix-shell --run '${{ github.workspace }}/bin/build_coverage.sh' | |
- name: Upload coverage report to Codacy | |
uses: codacy/codacy-coverage-reporter-action@89d6c85cfafaec52c72b6c5e8b2878d33104c699 # v1.3.0 | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: ${{ github.workspace }}/coverage.info | |
e2e-tests: | |
name: "e2e tests" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 | |
- name: Install Nix | |
uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27 | |
- name: Run tests | |
run: nix-shell --run '${{ github.workspace }}/bin/run_e2e_tests.sh' | |
clang-format: | |
name: "Run clang-format" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 | |
- name: Install Nix | |
uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27 | |
- name: Run clang-format | |
run: nix-shell --run '${{ github.workspace }}/bin/run_clang-format.sh' | |
- name: Check no changes | |
run: ${{ github.workspace }}/bin/check_no_changes.sh |