Skip to content

Merge pull request #795 from Kobzol/rustc-perf-two #2844

Merge pull request #795 from Kobzol/rustc-perf-two

Merge pull request #795 from Kobzol/rustc-perf-two #2844

Workflow file for this run

on:
push:
branches:
- master
pull_request:
jobs:
rust:
name: Rust projects
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install Rust stable
run: rustup update stable && rustup default stable && rustup component add clippy rustfmt
- name: Run rustfmt
run: cargo fmt --all -- --check
- name: Run the test suite
run: cargo test --all
- name: Run clippy
run: cargo clippy --all -- -Dwarnings
terraform:
name: Terraform configuration
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install terraform cli
uses: hashicorp/setup-terraform@v3
- name: Ensure the terraform files are formatted correctly
run: terraform fmt -check -diff -recursive
actions-js:
name: GitHub Actions (JS)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Ensure the bundled action is the same as the source code
run: |
for action in $(ls github-actions/); do
if [[ -f "github-actions/${action}/package.json" ]]; then
pushd "github-actions/${action}"
sha256sum dist/* > "/tmp/sha256-${action}-before"
npm install
npm run build
sha256sum dist/* > "/tmp/sha256-${action}-after"
diff -u --color "/tmp/sha256-${action}-before" "/tmp/sha256-${action}-after"
popd
fi
done
javascript-tests:
name: JavaScript Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Run tests
run: |
node --test terragrunt/modules/release-distribution/lambdas/doc-router/test.mjs