Skip to content

Unit and property tests for sampling and type unification #51

Unit and property tests for sampling and type unification

Unit and property tests for sampling and type unification #51

Workflow file for this run

name: Tests
on:
push:
branches:
- main
- 'v*'
pull_request:
# The build job caches build artifacts which avoids duplicating work between the
# unit and API tests.
jobs:
build:
name: Build the connector
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v3
- name: Install Nix ❄
uses: DeterminateSystems/nix-installer-action@v4
- name: Link Cachix πŸ”Œ
uses: cachix/cachix-action@v12
with:
name: '${{ vars.CACHIX_CACHE_NAME }}'
authToken: '${{ secrets.CACHIX_CACHE_AUTH_TOKEN }}'
- name: build the crate πŸ”¨
run: nix build --print-build-logs
unit_tests:
name: Unit Tests
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v3
- name: Install Nix ❄
uses: DeterminateSystems/nix-installer-action@v4
- name: Link Cachix πŸ”Œ
uses: cachix/cachix-action@v12
with:
name: '${{ vars.CACHIX_CACHE_NAME }}'
authToken: '${{ secrets.CACHIX_CACHE_AUTH_TOKEN }}'
- name: run unit tests πŸ”¨
run: nix build .#checks.x86_64-linux.test --print-build-logs
- name: run linter checks with clippy πŸ”¨
run: nix build .#checks.x86_64-linux.lint --print-build-logs
- name: audit for reported security problems πŸ”¨
run: nix build .#checks.x86_64-linux.audit --print-build-logs