-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (44 loc) · 1.71 KB
/
Copy pathtest.yml
File metadata and controls
56 lines (44 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Tests
on:
push:
branches:
- main
- 'v*'
pull_request:
jobs:
tests:
name: Tests
runs-on: ubuntu-24.04
steps:
- name: Checkout 🛎️
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Install Nix ❄
uses: DeterminateSystems/nix-installer-action@65d7c888b2778e8cf30a07a88422ccb23499bfb8 # v4
- name: Link Cachix 🔌
uses: cachix/cachix-action@6a9a34cdd93d0ae4b4b59fd678660efb08109f2f # 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: run integration tests 📋
run: nix develop --command just test-mongodb-versions
- name: run relational integration tests 📋
run: nix develop --command just test-relational-mongodb-versions
audit:
name: Security Audit
runs-on: ubuntu-24.04
steps:
- name: Checkout 🛎️
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Install Nix ❄
uses: DeterminateSystems/nix-installer-action@65d7c888b2778e8cf30a07a88422ccb23499bfb8 # v4
- name: Link Cachix 🔌
uses: cachix/cachix-action@6a9a34cdd93d0ae4b4b59fd678660efb08109f2f # v12
with:
name: '${{ vars.CACHIX_CACHE_NAME }}'
authToken: '${{ secrets.CACHIX_CACHE_AUTH_TOKEN }}'
- name: audit for reported security problems 🔨
run: nix build .#checks.x86_64-linux.audit --print-build-logs