Disable credential storage #9
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: Test Nix | |
on: | |
push: | |
branches: | |
- "**" | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- os: darwin | |
cpu: x86_64 | |
base: macos-13 # always x86_64-darwin | |
nix-installer: | |
platform: x86_64-darwin | |
- os: darwin | |
cpu: arm64 | |
base: macos-14 # always arm64-darwin | |
nix-installer: | |
platform: aarch64-darwin | |
- os: linux | |
cpu: x86_64 | |
base: ubuntu-24.04 # always x86_64-linux-gnu | |
nix-installer: | |
platform: x86_64-linux | |
- os: linux | |
cpu: aarch64 | |
base: arm-4core-linux-ubuntu24.04 # always aarch64-linux-gnu | |
nix-installer: | |
platform: aarch64-linux | |
name: Test Nix (${{ matrix.platform.cpu }}-${{ matrix.platform.os }}) | |
runs-on: ${{ matrix.platform.base }} | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: Check CPU arch | |
run: | | |
test "$(uname -m)" = "${{ matrix.platform.cpu }}" | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- uses: DeterminateSystems/nix-installer-action@v16 | |
with: | |
source-url: https://github.com/DeterminateSystems/nix-installer/releases/download/v0.30.0/nix-installer-${{ matrix.platform.nix-installer.platform }} | |
- uses: DeterminateSystems/magic-nix-cache-action@v8 | |
- name: Print Nix version | |
run: | | |
nix --version | |
- name: Print ruby version | |
run: | | |
nix develop --command which ruby | |
nix develop --command ruby --version | |
- name: Bundle install | |
run: nix develop --command bundle install | |
- name: Run tests | |
run: nix develop --command bundle exec rake docker:list |