mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-23 03:59:22 +00:00
Correct GITHUB_TOKEN handling
This commit is contained in:
parent
f10bcfddcb
commit
bff5f33616
4 changed files with 19 additions and 1 deletions
|
@ -2,6 +2,11 @@ name: build-dependencies
|
||||||
description: Installs build dependencies for Serai
|
description: Installs build dependencies for Serai
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
|
github-token:
|
||||||
|
description: "GitHub token to install Protobuf with"
|
||||||
|
require: true
|
||||||
|
default:
|
||||||
|
|
||||||
rust-toolchain:
|
rust-toolchain:
|
||||||
description: "Rust toolchain to install"
|
description: "Rust toolchain to install"
|
||||||
required: false
|
required: false
|
||||||
|
@ -18,7 +23,7 @@ runs:
|
||||||
- name: Install Protobuf
|
- name: Install Protobuf
|
||||||
uses: arduino/setup-protoc@v1
|
uses: arduino/setup-protoc@v1
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ inputs.github-token }}
|
||||||
|
|
||||||
- name: Install solc
|
- name: Install solc
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
7
.github/actions/test-dependencies/action.yml
vendored
7
.github/actions/test-dependencies/action.yml
vendored
|
@ -2,6 +2,11 @@ name: test-dependencies
|
||||||
description: Installs test dependencies for Serai
|
description: Installs test dependencies for Serai
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
|
github-token:
|
||||||
|
description: "GitHub token to install Protobuf with"
|
||||||
|
require: true
|
||||||
|
default:
|
||||||
|
|
||||||
monero-version:
|
monero-version:
|
||||||
description: "Monero version to download and run as a regtest node"
|
description: "Monero version to download and run as a regtest node"
|
||||||
required: false
|
required: false
|
||||||
|
@ -12,6 +17,8 @@ runs:
|
||||||
steps:
|
steps:
|
||||||
- name: Install Build Dependencies
|
- name: Install Build Dependencies
|
||||||
uses: ./.github/actions/build-dependencies
|
uses: ./.github/actions/build-dependencies
|
||||||
|
with:
|
||||||
|
github-token: ${{ inputs.github-token }}
|
||||||
|
|
||||||
- name: Install Foundry
|
- name: Install Foundry
|
||||||
uses: foundry-rs/foundry-toolchain@v1
|
uses: foundry-rs/foundry-toolchain@v1
|
||||||
|
|
3
.github/workflows/monero-tests.yaml
vendored
3
.github/workflows/monero-tests.yaml
vendored
|
@ -20,6 +20,8 @@ jobs:
|
||||||
|
|
||||||
- name: Test Dependencies
|
- name: Test Dependencies
|
||||||
uses: ./.github/actions/test-dependencies
|
uses: ./.github/actions/test-dependencies
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Run Unit Tests Without Features
|
- name: Run Unit Tests Without Features
|
||||||
run: cargo test --package monero-serai --lib
|
run: cargo test --package monero-serai --lib
|
||||||
|
@ -39,6 +41,7 @@ jobs:
|
||||||
- name: Test Dependencies
|
- name: Test Dependencies
|
||||||
uses: ./.github/actions/test-dependencies
|
uses: ./.github/actions/test-dependencies
|
||||||
with:
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
monero-version: ${{ matrix.version }}
|
monero-version: ${{ matrix.version }}
|
||||||
|
|
||||||
- name: Run Integration Tests Without Features
|
- name: Run Integration Tests Without Features
|
||||||
|
|
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
|
@ -20,6 +20,7 @@ jobs:
|
||||||
- name: Build Dependencies
|
- name: Build Dependencies
|
||||||
uses: ./.github/actions/build-dependencies
|
uses: ./.github/actions/build-dependencies
|
||||||
with:
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# Clippy requires nightly due to serai-runtime requiring it
|
# Clippy requires nightly due to serai-runtime requiring it
|
||||||
rust-toolchain: ${{ steps.nightly.outputs.version }}
|
rust-toolchain: ${{ steps.nightly.outputs.version }}
|
||||||
rust-components: clippy
|
rust-components: clippy
|
||||||
|
@ -57,6 +58,8 @@ jobs:
|
||||||
|
|
||||||
- name: Test Dependencies
|
- name: Test Dependencies
|
||||||
uses: ./.github/actions/test-dependencies
|
uses: ./.github/actions/test-dependencies
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: cargo test --all-features
|
run: cargo test --all-features
|
||||||
|
|
Loading…
Reference in a new issue