fix (actions): Use fixed major versions for actions
As actions get recurrent fixes, using a specific version causes more maintance on the pipelines. On the other hand, using @master versions could make some action unreliable, as breaking changes might be included without further notice, and even change behavior on a daily basis.
This commit is contained in:
parent
e82801e2d5
commit
8c93409902
|
@ -19,7 +19,7 @@ jobs:
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.4.0
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ jobs:
|
||||||
|
|
||||||
# Setup gcloud CLI
|
# Setup gcloud CLI
|
||||||
- name: Set up gcloud SDK environment
|
- name: Set up gcloud SDK environment
|
||||||
uses: google-github-actions/setup-gcloud@master
|
uses: google-github-actions/setup-gcloud@v0
|
||||||
with:
|
with:
|
||||||
version: '295.0.0'
|
version: '295.0.0'
|
||||||
project_id: ${{ env.PROJECT_ID }}
|
project_id: ${{ env.PROJECT_ID }}
|
||||||
|
@ -54,7 +54,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.4.0
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ jobs:
|
||||||
|
|
||||||
# Setup gcloud CLI
|
# Setup gcloud CLI
|
||||||
- name: Set up gcloud SDK environment
|
- name: Set up gcloud SDK environment
|
||||||
uses: google-github-actions/setup-gcloud@master
|
uses: google-github-actions/setup-gcloud@v0
|
||||||
with:
|
with:
|
||||||
version: '295.0.0'
|
version: '295.0.0'
|
||||||
project_id: ${{ env.PROJECT_ID }}
|
project_id: ${{ env.PROJECT_ID }}
|
||||||
|
|
|
@ -31,7 +31,7 @@ jobs:
|
||||||
rust: [stable]
|
rust: [stable]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.4.0
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ jobs:
|
||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
|
|
||||||
- name: cargo fetch
|
- name: cargo fetch
|
||||||
uses: actions-rs/cargo@v1.0.3
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: fetch
|
command: fetch
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ jobs:
|
||||||
run: cargo run --example download-params
|
run: cargo run --example download-params
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
uses: actions-rs/cargo@v1.0.3
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
args: --verbose --all
|
args: --verbose --all
|
||||||
|
@ -111,7 +111,7 @@ jobs:
|
||||||
- name: Run zebrad large sync tests
|
- name: Run zebrad large sync tests
|
||||||
# Skip the entire step on Ubuntu and Windows, because the test would be skipped anyway due to ZEBRA_SKIP_NETWORK_TESTS
|
# Skip the entire step on Ubuntu and Windows, because the test would be skipped anyway due to ZEBRA_SKIP_NETWORK_TESTS
|
||||||
if: matrix.os == 'macOS-latest'
|
if: matrix.os == 'macOS-latest'
|
||||||
uses: actions-rs/cargo@v1.0.3
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
# Note: this only runs the zebrad acceptance tests, because re-running all the test binaries is slow on Windows
|
# Note: this only runs the zebrad acceptance tests, because re-running all the test binaries is slow on Windows
|
||||||
|
@ -126,7 +126,7 @@ jobs:
|
||||||
rust: [stable]
|
rust: [stable]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.4.0
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
|
@ -139,7 +139,7 @@ jobs:
|
||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
|
|
||||||
- name: cargo fetch
|
- name: cargo fetch
|
||||||
uses: actions-rs/cargo@v1.0.3
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: fetch
|
command: fetch
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ jobs:
|
||||||
#
|
#
|
||||||
# Also, we don't want to accidentally use the fake heights in other tests.
|
# Also, we don't want to accidentally use the fake heights in other tests.
|
||||||
- name: Run tests with fake activation heights
|
- name: Run tests with fake activation heights
|
||||||
uses: actions-rs/cargo@v1.0.3
|
uses: actions-rs/cargo@v1
|
||||||
env:
|
env:
|
||||||
TEST_FAKE_ACTIVATION_HEIGHTS: ""
|
TEST_FAKE_ACTIVATION_HEIGHTS: ""
|
||||||
with:
|
with:
|
||||||
|
@ -167,7 +167,7 @@ jobs:
|
||||||
rust: [stable, beta]
|
rust: [stable, beta]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.4.0
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
|
@ -180,7 +180,7 @@ jobs:
|
||||||
- uses: Swatinem/rust-cache@v1
|
- uses: Swatinem/rust-cache@v1
|
||||||
|
|
||||||
- name: cargo fetch
|
- name: cargo fetch
|
||||||
uses: actions-rs/cargo@v1.0.3
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: fetch
|
command: fetch
|
||||||
|
|
||||||
|
@ -194,7 +194,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.4.0
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
|
@ -208,18 +208,18 @@ jobs:
|
||||||
|
|
||||||
# This check makes sure the crate dependency check is accurate
|
# This check makes sure the crate dependency check is accurate
|
||||||
- name: Check Cargo.lock is up to date
|
- name: Check Cargo.lock is up to date
|
||||||
uses: actions-rs/cargo@v1.0.3
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: check
|
command: check
|
||||||
args: --locked --all-features --all-targets
|
args: --locked --all-features --all-targets
|
||||||
|
|
||||||
- name: cargo fetch
|
- name: cargo fetch
|
||||||
uses: actions-rs/cargo@v1.0.3
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: fetch
|
command: fetch
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: actions-rs/cargo@v1.0.3
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: --verbose --release
|
args: --verbose --release
|
||||||
|
|
|
@ -25,11 +25,11 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.4.0
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- uses: actions-rs/toolchain@v1.0.7
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
# Pinned to workaround issue making cargo-llvm-cov fail, see
|
# Pinned to workaround issue making cargo-llvm-cov fail, see
|
||||||
# https://github.com/taiki-e/cargo-llvm-cov/issues/128
|
# https://github.com/taiki-e/cargo-llvm-cov/issues/128
|
||||||
|
@ -82,4 +82,4 @@ jobs:
|
||||||
run: cargo llvm-cov --lcov --no-run --output-path lcov.info
|
run: cargo llvm-cov --lcov --no-run --output-path lcov.info
|
||||||
|
|
||||||
- name: Upload coverage report to Codecov
|
- name: Upload coverage report to Codecov
|
||||||
uses: codecov/codecov-action@v2.1.0
|
uses: codecov/codecov-action@v2
|
||||||
|
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the source code
|
- name: Checkout the source code
|
||||||
uses: actions/checkout@v2.4.0
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ jobs:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Run clippy
|
- name: Run clippy
|
||||||
uses: actions-rs/clippy-check@v1.0.7
|
uses: actions-rs/clippy-check@v1
|
||||||
with:
|
with:
|
||||||
# GitHub displays the clippy job and its results as separate entries
|
# GitHub displays the clippy job and its results as separate entries
|
||||||
name: Clippy (stable) Results
|
name: Clippy (stable) Results
|
||||||
|
@ -54,7 +54,7 @@ jobs:
|
||||||
|
|
||||||
- uses: Swatinem/rust-cache@v1 # TODO: No cache is being found
|
- uses: Swatinem/rust-cache@v1 # TODO: No cache is being found
|
||||||
|
|
||||||
- uses: actions-rs/cargo@v1.0.3
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: fmt
|
command: fmt
|
||||||
args: --all -- --check
|
args: --all -- --check
|
||||||
|
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
name: Deploy one zebrad node
|
name: Deploy one zebrad node
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.4.0
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@ jobs:
|
||||||
echo "REPOSITORY=$REPOSITORY" >> $GITHUB_ENV
|
echo "REPOSITORY=$REPOSITORY" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Set up gcloud
|
- name: Set up gcloud
|
||||||
uses: google-github-actions/setup-gcloud@master
|
uses: google-github-actions/setup-gcloud@v0
|
||||||
with:
|
with:
|
||||||
version: '295.0.0'
|
version: '295.0.0'
|
||||||
project_id: ${{ env.PROJECT_ID }}
|
project_id: ${{ env.PROJECT_ID }}
|
||||||
|
|
|
@ -16,7 +16,7 @@ jobs:
|
||||||
name: Regenerate test state
|
name: Regenerate test state
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.4.0
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ jobs:
|
||||||
echo "SHORT_SHA=$(git rev-parse --short=7 $GITHUB_SHA)" >> $GITHUB_ENV && \
|
echo "SHORT_SHA=$(git rev-parse --short=7 $GITHUB_SHA)" >> $GITHUB_ENV && \
|
||||||
echo "REPOSITORY=$REPOSITORY" >> $GITHUB_ENV
|
echo "REPOSITORY=$REPOSITORY" >> $GITHUB_ENV
|
||||||
- name: Set up gcloud
|
- name: Set up gcloud
|
||||||
uses: google-github-actions/setup-gcloud@master
|
uses: google-github-actions/setup-gcloud@v0
|
||||||
with:
|
with:
|
||||||
version: '295.0.0'
|
version: '295.0.0'
|
||||||
project_id: ${{ env.PROJECT_ID }}
|
project_id: ${{ env.PROJECT_ID }}
|
||||||
|
|
|
@ -23,7 +23,7 @@ jobs:
|
||||||
name: Run all tests
|
name: Run all tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.4.0
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ jobs:
|
||||||
echo "REPOSITORY=$REPOSITORY" >> $GITHUB_ENV
|
echo "REPOSITORY=$REPOSITORY" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Set up gcloud
|
- name: Set up gcloud
|
||||||
uses: google-github-actions/setup-gcloud@master
|
uses: google-github-actions/setup-gcloud@v0
|
||||||
with:
|
with:
|
||||||
version: '295.0.0'
|
version: '295.0.0'
|
||||||
project_id: ${{ env.PROJECT_ID }}
|
project_id: ${{ env.PROJECT_ID }}
|
||||||
|
|
|
@ -19,7 +19,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.4.0
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ jobs:
|
||||||
|
|
||||||
# Setup gcloud CLI
|
# Setup gcloud CLI
|
||||||
- name: Set up gcloud SDK environment
|
- name: Set up gcloud SDK environment
|
||||||
uses: google-github-actions/setup-gcloud@master
|
uses: google-github-actions/setup-gcloud@v0
|
||||||
with:
|
with:
|
||||||
version: '295.0.0'
|
version: '295.0.0'
|
||||||
project_id: ${{ env.PROJECT_ID }}
|
project_id: ${{ env.PROJECT_ID }}
|
||||||
|
|
Loading…
Reference in New Issue