Skip to content

Commit

Permalink
build: test for feat-types
Browse files Browse the repository at this point in the history
  • Loading branch information
aljazerzen committed Mar 25, 2024
1 parent ee6b2ce commit 7ff86a1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test-feat-types.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Test feat-types
on:
push:
branches: [feat-types]
pull_request:
branches: [feat-types]
jobs:
test-job:
runs-on: ubuntu-latest
steps:
# checkout and env setup
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build the nix shell
run: nix develop --command task --version
- uses: Swatinem/rust-cache@v2

# run tests
- name: Test prqlc
run: nix develop --command task test
working-directory: prqlc
8 changes: 8 additions & 0 deletions prqlc/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ tasks:
--ignore-unknown \
--log-level=warn
fmt-check:
desc: Validate that source files are formatted
cmds:
- cargo fmt --check {{.packages_core}} {{.packages_addon}}
{{.packages_bindings}}

test-fast:
desc: A fast test used for feedback during compiler development
cmds:
Expand All @@ -53,6 +59,8 @@ tasks:
# Use a different target dir so we don't poison the cache
CARGO_LLVM_COV_TARGET_DIR: ../target-cov
cmds:
- task: fmt-check

- cmd: |
cargo \
llvm-cov --lcov --output-path lcov.info \
Expand Down

0 comments on commit 7ff86a1

Please sign in to comment.