Skip to content

Add support for running GitHub Actions locally using the act tool. #224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ jobs:
with:
go-version: '^1.16'

- name: Install dependencies
if: ${{ env.ACT }}
run: |
go install github.com/bazelbuild/[email protected]

- name: Cache
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -92,6 +97,15 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install dependencies
if: ${{ env.ACT }}
run: |
curl -OL https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init
chmod +x ./rustup-init
./rustup-init -y
rm rustup-init
echo "$HOME/.cargo/bin" >> $GITHUB_PATH

- name: Update Rust
run: |
rustup toolchain install stable --component clippy --component rustfmt
Expand Down Expand Up @@ -131,6 +145,15 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install dependencies
if: ${{ env.ACT }}
run: |
curl -OL https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init
chmod +x ./rustup-init
./rustup-init -y
rm rustup-init
echo "$HOME/.cargo/bin" >> $GITHUB_PATH

- name: Update Rust
run: |
rustup toolchain install nightly --component clippy --component rustfmt
Expand Down Expand Up @@ -168,6 +191,17 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install dependencies
if: ${{ env.ACT }}
run: |
curl -OL https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init
chmod +x ./rustup-init
./rustup-init -y
rm rustup-init
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
export PATH=$PATH:$HOME/.cargo/bin
cargo install cargo-outdated

- name: Run cargo outdated
run: cargo outdated --root-deps-only --exit-code 1

Expand All @@ -177,6 +211,17 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install dependencies
if: ${{ env.ACT }}
run: |
curl -OL https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init
chmod +x ./rustup-init
./rustup-init -y
rm rustup-init
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
export PATH=$PATH:$HOME/.cargo/bin
cargo install cargo-audit

- name: Run cargo audit
run: |
cp -p bazel/cargo/Cargo.Bazel.lock Cargo.lock
Expand Down Expand Up @@ -204,6 +249,15 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install dependencies
if: ${{ env.ACT }}
run: |
curl -OL https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init
chmod +x ./rustup-init
./rustup-init -y
rm rustup-init
echo "$HOME/.cargo/bin" >> $GITHUB_PATH

- name: Update Rust
run: |
rustup toolchain install stable --component clippy --component rustfmt
Expand Down Expand Up @@ -258,6 +312,15 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Install dependencies
if: ${{ env.ACT }}
run: |
curl -OL https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init
chmod +x ./rustup-init
./rustup-init -y
rm rustup-init
echo "$HOME/.cargo/bin" >> $GITHUB_PATH

- name: Update Rust
run: |
rustup toolchain install nightly --component clippy --component rustfmt
Expand Down