-
Notifications
You must be signed in to change notification settings - Fork 379
54 lines (48 loc) · 1.31 KB
/
nix.yml
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
name: Test Nix
on:
push:
branches:
- "**"
jobs:
test:
strategy:
fail-fast: false
matrix:
platform:
- os: darwin
cpu: x86_64
base: macos-12
- os: darwin
cpu: arm64
base: macos-14
- os: linux
cpu: x86_64
base: ubuntu-22.04
- os: linux
cpu: aarch64
base: arm-4core-linux
nix:
- 24.05
name: Test Nix (${{ matrix.platform.cpu }}-${{ matrix.platform.os }}, ${{ matrix.nix }})
runs-on: ${{ matrix.platform.base }}
permissions:
contents: read
id-token: write
env:
SKIP_SIMPLECOV: 1
DD_INSTRUMENTATION_TELEMETRY_ENABLED: false
DD_REMOTE_CONFIGURATION_ENABLED: false
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix-shell --run 'which ruby'
- run: nix-shell --run 'ruby --version'
- name: Print ruby version
run: |
nix-shell --run 'which ruby'
nix-shell --run 'ruby --version'
- name: Bundle install
run: nix-shell --run 'bundle install'
- name: Run spec:main
run: nix-shell --run 'bundle exec rake spec:main'