Skip to content

Commit 16ce4b7

Browse files
chore: initial release
1 parent 54ed42a commit 16ce4b7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+189544
-1
lines changed

.github/workflows/actions_release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release GitHub Actions
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: "Tag for the release"
8+
required: true
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
release:
15+
permissions:
16+
actions: read
17+
id-token: write
18+
contents: write
19+
uses: step-security/reusable-workflows/.github/workflows/actions_release.yaml@v1
20+
with:
21+
tag: "${{ github.event.inputs.tag }}"

.github/workflows/buildjet.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: buildjet
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
buildjet:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-latest, macos-latest, windows-latest]
11+
12+
name: Test buildjet provider on ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
15+
env:
16+
CARGO_TERM_COLOR: always
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- run: rustup toolchain install stable --profile minimal --no-self-update
22+
23+
- uses: ./
24+
with:
25+
workspaces: tests
26+
cache-provider: buildjet
27+
28+
- run: |
29+
cargo check
30+
cargo test
31+
cargo build --release
32+
working-directory: tests

.github/workflows/check-dist.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: check dist/
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths-ignore:
8+
- "**.md"
9+
pull_request:
10+
paths-ignore:
11+
- "**.md"
12+
workflow_dispatch:
13+
14+
jobs:
15+
check-dist:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Setup Node.js 20.x
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20.x
24+
cache: npm
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: Rebuild the dist/ directory
30+
run: npm run prepare
31+
32+
- name: Compare the expected and actual dist/ directories
33+
run: |
34+
if [ "$(git diff dist/ | wc -l)" -gt "0" ]; then
35+
echo "Detected uncommitted changes after build. See status below:"
36+
git diff
37+
exit 1
38+
fi
39+
id: diff
40+
41+
- uses: actions/upload-artifact@v3
42+
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
43+
with:
44+
name: dist
45+
path: dist/

.github/workflows/coverage.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: coverage
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
coverage:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-latest, macos-latest, windows-latest]
11+
12+
name: Test `cargo-llvm-cov` on ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
15+
env:
16+
CARGO_TERM_COLOR: always
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- run: rustup toolchain install stable --profile minimal --component llvm-tools-preview --no-self-update
22+
23+
- uses: taiki-e/install-action@cargo-llvm-cov
24+
25+
- uses: ./
26+
with:
27+
workspaces: tests
28+
29+
- run: cargo llvm-cov --all-features --workspace
30+
working-directory: tests

.github/workflows/git-registry.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: git-registry
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
git-registry:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-latest, macos-latest, windows-latest]
11+
12+
name: Test cargo "git" registry on ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
15+
env:
16+
CARGO_TERM_COLOR: always
17+
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: git
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- run: rustup toolchain install stable --profile minimal --no-self-update
23+
24+
- uses: ./
25+
with:
26+
workspaces: tests
27+
28+
- run: |
29+
cargo check
30+
cargo test
31+
working-directory: tests

.github/workflows/install.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: install
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
install:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-latest, macos-latest, windows-latest]
11+
12+
name: Test `cargo install` on ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
15+
env:
16+
CARGO_TERM_COLOR: always
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- run: rustup toolchain install stable --profile minimal --no-self-update
22+
23+
- uses: ./
24+
25+
- run: cargo install cargo-deny --locked

.github/workflows/simple.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: simple
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
simple:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-latest, macos-latest, windows-latest]
11+
12+
name: Test `cargo check/test/build` on ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
15+
env:
16+
CARGO_TERM_COLOR: always
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- run: rustup toolchain install stable --profile minimal --no-self-update
22+
23+
- uses: ./
24+
with:
25+
workspaces: tests
26+
27+
- run: |
28+
cargo check
29+
cargo test
30+
cargo build --release
31+
working-directory: tests

.github/workflows/target-dir.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: target-dir
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
target-dir:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-latest, macos-latest, windows-latest]
11+
12+
name: Test custom target-dir on ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
15+
env:
16+
CARGO_TERM_COLOR: always
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- run: rustup toolchain install stable --profile minimal --no-self-update
22+
23+
# the `workspaces` option has the format `$workspace -> $target-dir`
24+
# and the `$target-dir` is relative to the `$workspace`.
25+
- uses: ./
26+
with:
27+
workspaces: tests -> ../custom-target-dir
28+
29+
- run: cargo test --manifest-path tests/Cargo.toml --target-dir custom-target-dir

.github/workflows/workspaces.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: workspaces
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
workspaces:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
os: [ubuntu-latest, macos-latest, windows-latest]
11+
12+
name: Test multiple workspaces on ${{ matrix.os }}
13+
runs-on: ${{ matrix.os }}
14+
15+
env:
16+
CARGO_TERM_COLOR: always
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- run: rustup toolchain install stable --profile minimal --target wasm32-unknown-unknown --no-self-update
22+
23+
- uses: ./
24+
with:
25+
workspaces: |
26+
tests
27+
tests/wasm-workspace
28+
29+
- run: cargo check
30+
working-directory: tests
31+
32+
- run: cargo check
33+
working-directory: tests/wasm-workspace

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
node_modules/
2+
target/
3+
4+
# Editors
5+
.idea/
6+
7+
# Mac
8+
.DS_Store

0 commit comments

Comments
 (0)