forked from actions-rs/toolchain
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88dc235
commit 1a3080d
Showing
44 changed files
with
13,598 additions
and
6,900 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# ref: https://docs.codecov.com/docs/codecovyml-reference | ||
coverage: | ||
range: 80..100 | ||
round: down | ||
precision: 1 | ||
status: | ||
# ref: https://docs.codecov.com/docs/commit-status | ||
project: | ||
default: | ||
# Avoid false negatives | ||
threshold: 2% | ||
|
||
# Test files aren't important for coverage | ||
ignore: | ||
- "tests" | ||
|
||
# Make comments less noisy | ||
comment: | ||
layout: "files" | ||
require_changes: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: 2 | ||
updates: | ||
# When a new version of action exists | ||
- package-ecosystem: github-actions | ||
directory: / | ||
schedule: | ||
interval: daily | ||
- package-ecosystem: npm | ||
open-pull-requests-limit: 10 | ||
directory: / | ||
schedule: | ||
interval: weekly | ||
ignore: | ||
- dependency-name: "*" | ||
# Ignore the patch and account for everything more important than minor | ||
update-types: | ||
- "version-update:semver-patch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Check | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
permissions: | ||
contents: read | ||
concurrency: | ||
# Cancel old actions upon push | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
name: Lint check | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Lint check | ||
run: npm run lint |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: CI Test - components input | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
jobs: | ||
install_on_runner: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macOS-latest | ||
- windows-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use myself | ||
uses: ./ | ||
with: | ||
toolchain: nightly | ||
profile: minimal | ||
override: true | ||
# 2 components not included within the minimal profile | ||
components: clippy, miri | ||
|
||
- name: Test clippy exists | ||
run: cargo clippy -V | ||
|
||
- name: Test miri exists | ||
run: cargo miri -V | ||
install_in_docker: | ||
runs-on: ubuntu-latest | ||
# Docker image, not the GitHub Actions VM | ||
container: ubuntu:latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
# `rustup` will need `curl` or `wget` later | ||
- name: Install packages | ||
run: apt-get update && apt-get install -y curl | ||
|
||
- name: Use myself | ||
uses: ./ | ||
with: | ||
toolchain: nightly | ||
profile: minimal | ||
override: true | ||
# 2 components not included within the minimal profile | ||
components: clippy, miri | ||
|
||
- name: Test clippy exists | ||
run: cargo clippy -V | ||
|
||
- name: Test miri exists | ||
run: cargo miri -V |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: CI Test - default input | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
jobs: | ||
install_on_runner: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macOS-latest | ||
- windows-latest | ||
toolchain: | ||
- 1.70.0 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use myself | ||
id: toolchain | ||
uses: ./ | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
profile: minimal | ||
default: true | ||
|
||
- name: Test toolchain version | ||
run: | | ||
test "${{ steps.toolchain.outputs.rustc }}" = "${{ matrix.toolchain }}" | ||
install_in_docker: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
toolchain: | ||
- 1.70.0 | ||
# Docker image, not the GitHub Actions VM | ||
container: ubuntu:latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
# `rustup` will need `curl` or `wget` later | ||
- name: Install packages | ||
run: apt-get update && apt-get install -y curl | ||
|
||
- name: Use myself | ||
id: toolchain | ||
uses: ./ | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
profile: minimal | ||
default: true | ||
|
||
- name: Test toolchain version | ||
run: | | ||
test "${{ steps.toolchain.outputs.rustc }}" = "${{ matrix.toolchain }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: CI Test - install stable & nightly | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
jobs: | ||
install_on_runner: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macOS-latest | ||
- windows-latest | ||
toolchain: | ||
- stable | ||
- nightly | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use myself | ||
id: toolchain | ||
uses: ./ | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
profile: minimal | ||
override: true | ||
|
||
- name: Test action outputs | ||
env: | ||
RUSTC: ${{ steps.toolchain.outputs.rustc }} | ||
RUSTC_HASH: ${{ steps.toolchain.outputs.rustc_hash }} | ||
CARGO: ${{ steps.toolchain.outputs.cargo }} | ||
RUSTUP: ${{ steps.toolchain.outputs.rustup }} | ||
run: | | ||
echo "$RUSTC" && test "$RUSTC" != "" | ||
echo "$RUSTC_HASH" && test "$RUSTC_HASH" != "" | ||
echo "$CARGO" && test "$CARGO" != "" | ||
echo "$RUSTUP" && test "$RUSTUP" != "" | ||
install_in_docker: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
toolchain: | ||
- stable | ||
- nightly | ||
# Docker image, not the GitHub Actions VM | ||
container: ubuntu:latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
# `rustup` will need `curl` or `wget` later | ||
- name: Install packages | ||
run: apt-get update && apt-get install -y curl | ||
|
||
- name: Use myself | ||
id: toolchain | ||
uses: ./ | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
profile: minimal | ||
override: true | ||
|
||
- name: Test action outputs | ||
env: | ||
RUSTC: ${{ steps.toolchain.outputs.rustc }} | ||
RUSTC_HASH: ${{ steps.toolchain.outputs.rustc_hash }} | ||
CARGO: ${{ steps.toolchain.outputs.cargo }} | ||
RUSTUP: ${{ steps.toolchain.outputs.rustup }} | ||
run: | | ||
echo "$RUSTC" && test "$RUSTC" != "" | ||
echo "$RUSTC_HASH" && test "$RUSTC_HASH" != "" | ||
echo "$CARGO" && test "$CARGO" != "" | ||
echo "$RUSTUP" && test "$RUSTUP" != "" |
Oops, something went wrong.