-
Notifications
You must be signed in to change notification settings - Fork 1
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
54ed42a
commit 16ce4b7
Showing
42 changed files
with
189,544 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Release GitHub Actions | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: "Tag for the release" | ||
required: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
release: | ||
permissions: | ||
actions: read | ||
id-token: write | ||
contents: write | ||
uses: step-security/reusable-workflows/.github/workflows/actions_release.yaml@v1 | ||
with: | ||
tag: "${{ github.event.inputs.tag }}" |
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,32 @@ | ||
name: buildjet | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
buildjet: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
name: Test buildjet provider on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- run: rustup toolchain install stable --profile minimal --no-self-update | ||
|
||
- uses: ./ | ||
with: | ||
workspaces: tests | ||
cache-provider: buildjet | ||
|
||
- run: | | ||
cargo check | ||
cargo test | ||
cargo build --release | ||
working-directory: tests |
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,45 @@ | ||
name: check dist/ | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "**.md" | ||
pull_request: | ||
paths-ignore: | ||
- "**.md" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check-dist: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js 20.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
cache: npm | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Rebuild the dist/ directory | ||
run: npm run prepare | ||
|
||
- name: Compare the expected and actual dist/ directories | ||
run: | | ||
if [ "$(git diff dist/ | wc -l)" -gt "0" ]; then | ||
echo "Detected uncommitted changes after build. See status below:" | ||
git diff | ||
exit 1 | ||
fi | ||
id: diff | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: ${{ failure() && steps.diff.conclusion == 'failure' }} | ||
with: | ||
name: dist | ||
path: dist/ |
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: coverage | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
coverage: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
name: Test `cargo-llvm-cov` on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- run: rustup toolchain install stable --profile minimal --component llvm-tools-preview --no-self-update | ||
|
||
- uses: taiki-e/install-action@cargo-llvm-cov | ||
|
||
- uses: ./ | ||
with: | ||
workspaces: tests | ||
|
||
- run: cargo llvm-cov --all-features --workspace | ||
working-directory: tests |
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,31 @@ | ||
name: git-registry | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
git-registry: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
name: Test cargo "git" registry on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: git | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- run: rustup toolchain install stable --profile minimal --no-self-update | ||
|
||
- uses: ./ | ||
with: | ||
workspaces: tests | ||
|
||
- run: | | ||
cargo check | ||
cargo test | ||
working-directory: tests |
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,25 @@ | ||
name: install | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
install: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
name: Test `cargo install` on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- run: rustup toolchain install stable --profile minimal --no-self-update | ||
|
||
- uses: ./ | ||
|
||
- run: cargo install cargo-deny --locked |
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,31 @@ | ||
name: simple | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
simple: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
name: Test `cargo check/test/build` on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- run: rustup toolchain install stable --profile minimal --no-self-update | ||
|
||
- uses: ./ | ||
with: | ||
workspaces: tests | ||
|
||
- run: | | ||
cargo check | ||
cargo test | ||
cargo build --release | ||
working-directory: tests |
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,29 @@ | ||
name: target-dir | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
target-dir: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
name: Test custom target-dir on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- run: rustup toolchain install stable --profile minimal --no-self-update | ||
|
||
# the `workspaces` option has the format `$workspace -> $target-dir` | ||
# and the `$target-dir` is relative to the `$workspace`. | ||
- uses: ./ | ||
with: | ||
workspaces: tests -> ../custom-target-dir | ||
|
||
- run: cargo test --manifest-path tests/Cargo.toml --target-dir custom-target-dir |
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,33 @@ | ||
name: workspaces | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
workspaces: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
|
||
name: Test multiple workspaces on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- run: rustup toolchain install stable --profile minimal --target wasm32-unknown-unknown --no-self-update | ||
|
||
- uses: ./ | ||
with: | ||
workspaces: | | ||
tests | ||
tests/wasm-workspace | ||
- run: cargo check | ||
working-directory: tests | ||
|
||
- run: cargo check | ||
working-directory: tests/wasm-workspace |
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,8 @@ | ||
node_modules/ | ||
target/ | ||
|
||
# Editors | ||
.idea/ | ||
|
||
# Mac | ||
.DS_Store |
Oops, something went wrong.