Skip to content

chore(ci-staging): assign permissions #2357

chore(ci-staging): assign permissions

chore(ci-staging): assign permissions #2357

Workflow file for this run

on:
push:
branches:
- master
pull_request:
jobs:
rust:
name: Rust projects
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install Rust stable
run: rustup update stable && rustup default stable
- 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-latest
steps:
- uses: actions/checkout@master
- name: Ensure the terraform files are formatted correctly
run: terraform fmt -check -diff -recursive
actions-js:
name: GitHub Actions (JS)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- 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