Skip to content

build(deps): bump actions/checkout from 3 to 4 #203

build(deps): bump actions/checkout from 3 to 4

build(deps): bump actions/checkout from 3 to 4 #203

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
Terraform:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Enable magic Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Terraform fmt
run: nix-shell --run 'terraform fmt -check -recursive ./terraform'
- name: Terraform init
run: |
nix-shell --run '
for dir in $(find terraform -type d); do
echo "initializing dir $dir"
terraform -chdir=$dir init -backend=false
done
'
- name: Terraform validate
run: |
nix-shell --run '
for dir in $(find terraform -type d); do
echo "validating dir $dir"
terraform -chdir=$dir validate -no-color
done
'
NixFormat:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check nixpkgs-fmt formatting
run: .github/workflows/fmt.sh
Shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Enable magic Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Shellcheck ./scripts/
run: nix-shell --run 'shellcheck $(git ls-files | grep "\.sh$")'
NixTests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Enable magic Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Evaluation cases of the definition
run: nix-instantiate --strict --eval --json ./default.nix -A checks.definition
- name: Evaluation cases of the helpers
run: nix-instantiate --strict --eval --json ./default.nix -A checks.helpers
# NOTE: we can't add the implementation tests to CI because of the lack of KVM:
# error: a 'x86_64-linux' with features {kvm, nixos-test} is required to build '/nix/store/5cy5k2lgcfc9apjf3icj74l53bxxf8b0-vm-test-run-unnamed.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, nixos-test}
EditorConfig:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: greut/eclint-action@v0
RustFmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Check rustfmt
working-directory: ./messenger
run: nix develop --command cargo fmt -- --check
RustBuild:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build messenger
run: nix build .#messenger -L