-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
ba84acd
commit 277b851
Showing
25 changed files
with
107 additions
and
107 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,9 @@ name: pnpm | |
runs: | ||
using: composite | ||
steps: | ||
- uses: pnpm/[email protected] | ||
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 | ||
|
||
- uses: actions/setup-node@v4 | ||
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 | ||
with: | ||
node-version-file: .node-version | ||
registry-url: "https://registry.npmjs.org" | ||
|
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
autofix: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiki-e/[email protected] | ||
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | ||
|
||
- uses: oxc-project/[email protected] | ||
with: | ||
|
@@ -25,21 +25,21 @@ jobs: | |
|
||
- name: Restore dprint plugin cache | ||
id: cache-restore | ||
uses: actions/cache/restore@v4 | ||
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4 | ||
with: | ||
key: dprint-autofix-ci-${{ runner.os }}-${{ hashFiles('dprint.json') }} | ||
path: ~/.cache/dprint | ||
|
||
- run: just fmt | ||
|
||
- uses: autofix-ci/[email protected] | ||
- uses: autofix-ci/action@2891949f3779a1cafafae1523058501de3d4e944 # v1.3.1 | ||
with: | ||
fail-fast: false | ||
|
||
- name: Save dprint plugin cache | ||
if: ${{ github.ref_name == 'main' }} | ||
id: cache-save | ||
uses: actions/cache/save@v4 | ||
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4 | ||
with: | ||
key: ${{ steps.cache-restore.outputs.cache-primary-key }} | ||
path: ~/.cache/dprint |
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 |
---|---|---|
|
@@ -64,7 +64,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout Branch | ||
uses: taiki-e/[email protected] | ||
uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | ||
|
||
- uses: oxc-project/[email protected] | ||
with: | ||
|
@@ -91,7 +91,7 @@ jobs: | |
rm target/codspeed/oxc_benchmark/*.d | ||
- name: Run benchmark | ||
uses: CodSpeedHQ/action@v3 | ||
uses: CodSpeedHQ/action@513a19673a831f139e8717bf45ead67e47f00044 # v3 | ||
timeout-minutes: 30 | ||
with: | ||
# Dummy token for tokenless runs, to suppress logging hash of metadata JSON (see `upload.mjs`) | ||
|
@@ -100,7 +100,7 @@ jobs: | |
run: cargo codspeed run | ||
|
||
- name: Upload bench data artefact | ||
uses: actions/upload-artifact@v4 | ||
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4 | ||
with: | ||
name: result-${{ matrix.component }} | ||
path: ${{ env.DATA_DIR }} # env.DATA_DIR from `capture.mjs` | ||
|
@@ -115,7 +115,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Branch | ||
uses: taiki-e/[email protected] | ||
uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | ||
|
||
- uses: oxc-project/[email protected] | ||
with: | ||
|
@@ -133,7 +133,7 @@ jobs: | |
rm target/codspeed/oxc_benchmark/*.d | ||
- name: Upload Binary | ||
uses: actions/upload-artifact@v4 | ||
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4 | ||
with: | ||
if-no-files-found: error | ||
name: benchmark-linter | ||
|
@@ -154,10 +154,10 @@ jobs: | |
|
||
steps: | ||
- name: Checkout Branch | ||
uses: taiki-e/[email protected] | ||
uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | ||
|
||
- name: Download Binary | ||
uses: actions/download-artifact@v4 | ||
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4 | ||
with: | ||
name: benchmark-linter | ||
path: ./target/codspeed/oxc_benchmark | ||
|
@@ -168,7 +168,7 @@ jobs: | |
chmod +x ./target/codspeed/oxc_benchmark/* | ||
- name: Install codspeed | ||
uses: taiki-e/[email protected] | ||
uses: taiki-e/install-action@8c39981484df4e7ba41af8e8e078ac546d5e1b11 # v2.46.8 | ||
with: | ||
tool: cargo-codspeed | ||
|
||
|
@@ -182,7 +182,7 @@ jobs: | |
run: node capture.mjs & | ||
|
||
- name: Run benchmark | ||
uses: CodSpeedHQ/action@v3 | ||
uses: CodSpeedHQ/action@513a19673a831f139e8717bf45ead67e47f00044 # v3 | ||
timeout-minutes: 30 | ||
env: | ||
FIXTURE: ${{ matrix.fixture }} | ||
|
@@ -193,7 +193,7 @@ jobs: | |
run: cargo codspeed run | ||
|
||
- name: Upload bench data artefact | ||
uses: actions/upload-artifact@v4 | ||
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4 | ||
with: | ||
name: result-linter${{ matrix.fixture }} | ||
path: ${{ env.DATA_DIR }} # env.DATA_DIR from `capture.mjs` | ||
|
@@ -278,7 +278,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Branch | ||
uses: taiki-e/[email protected] | ||
uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | ||
|
||
- uses: ./.github/actions/pnpm | ||
|
||
|
@@ -287,7 +287,7 @@ jobs: | |
run: node create_temp_dir.mjs | ||
|
||
- name: Download artefacts | ||
uses: actions/download-artifact@v4 | ||
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4 | ||
with: | ||
merge-multiple: true | ||
pattern: result-* | ||
|
@@ -300,7 +300,7 @@ jobs: | |
run: node upload.mjs | ||
|
||
- name: Delete temporary artefacts | ||
uses: geekyeggo/delete-artifact@v5 | ||
uses: geekyeggo/delete-artifact@f275313e70c08f6120db482d7a6b98377786765b # v5 | ||
with: | ||
name: | | ||
result-* | ||
|
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ jobs: | |
name: Cargo Bloat | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiki-e/[email protected] | ||
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | ||
|
||
- uses: oxc-project/[email protected] | ||
with: | ||
|
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 |
---|---|---|
|
@@ -15,12 +15,12 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: taiki-e/[email protected] | ||
uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | ||
|
||
- uses: oxc-project/[email protected] | ||
|
||
- name: Install cargo-llvm-lines | ||
uses: taiki-e/[email protected] | ||
uses: taiki-e/install-action@8c39981484df4e7ba41af8e8e078ac546d5e1b11 # v2.46.8 | ||
with: | ||
tool: cargo-llvm-lines | ||
|
||
|
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 |
---|---|---|
|
@@ -35,7 +35,7 @@ jobs: | |
- os: macos-latest | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: taiki-e/[email protected] | ||
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | ||
- uses: oxc-project/[email protected] | ||
with: | ||
# warm cache factory for all other CI jobs | ||
|
@@ -51,11 +51,11 @@ jobs: | |
if: ${{ github.ref_name == 'main' }} | ||
runs-on: windows-latest | ||
steps: | ||
- uses: taiki-e/[email protected] | ||
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | ||
# Unsung heros of the internet, who led me here to speed up window's slowness: | ||
# https://github.com/actions/cache/issues/752#issuecomment-1847036770 | ||
# https://github.com/astral-sh/uv/blob/502e04200d52de30d3159894833b3db4f0d6644d/.github/workflows/ci.yml#L158 | ||
- uses: samypr100/setup-dev-drive@v3 | ||
- uses: samypr100/setup-dev-drive@d3f2420389ae9ea6e91dd178779e122c42352047 # v3 | ||
with: | ||
workspace-copy: true | ||
drive-size: 8GB | ||
|
@@ -77,7 +77,7 @@ jobs: | |
rustup show | ||
git restore . | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2 | ||
with: | ||
workspaces: ${{ env.DEV_DRIVE_WORKSPACE }} | ||
save-if: ${{ github.ref_name == 'main' }} | ||
|
@@ -106,7 +106,7 @@ jobs: | |
# Insta is not able to run on wasmtime, omit the packages that depend on it | ||
TEST_FLAGS: "-p oxc_ast -p oxc_cfg -p oxc_regular_expression -- --nocapture" | ||
steps: | ||
- uses: taiki-e/[email protected] | ||
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | ||
- uses: oxc-project/[email protected] | ||
with: | ||
cache-key: wasi | ||
|
@@ -120,7 +120,7 @@ jobs: | |
name: Check wasm32-unknown-unknown | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiki-e/[email protected] | ||
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | ||
|
||
- uses: oxc-project/[email protected] | ||
with: | ||
|
@@ -146,7 +146,7 @@ jobs: | |
name: Spell Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiki-e/[email protected] | ||
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | ||
- uses: crate-ci/[email protected] | ||
with: | ||
files: . | ||
|
@@ -155,7 +155,7 @@ jobs: | |
name: Clippy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiki-e/[email protected] | ||
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | ||
- uses: oxc-project/[email protected] | ||
with: | ||
save-cache: ${{ github.ref_name == 'main' }} | ||
|
@@ -176,7 +176,7 @@ jobs: | |
name: Doc | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiki-e/[email protected] | ||
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | ||
- uses: oxc-project/[email protected] | ||
with: | ||
cache-key: warm | ||
|
@@ -187,9 +187,9 @@ jobs: | |
name: Conformance | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiki-e/[email protected] | ||
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | ||
|
||
- uses: dorny/paths-filter@v3 | ||
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3 | ||
id: filter | ||
with: | ||
filters: | | ||
|
@@ -234,9 +234,9 @@ jobs: | |
name: Minification Size | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiki-e/[email protected] | ||
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | ||
|
||
- uses: dorny/paths-filter@v3 | ||
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3 | ||
id: filter | ||
with: | ||
filters: | | ||
|
@@ -262,9 +262,9 @@ jobs: | |
name: AST Changes | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiki-e/[email protected] | ||
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | ||
|
||
- uses: dorny/paths-filter@v3 | ||
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3 | ||
id: filter | ||
with: | ||
filters: ".github/.generated_ast_watch_list.yml" | ||
|
@@ -279,7 +279,7 @@ jobs: | |
|
||
- name: Restore dprint plugin cache | ||
id: cache-restore | ||
uses: actions/cache/restore@v4 | ||
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4 | ||
with: | ||
key: dprint-autofix-ci-${{ runner.os }}-${{ hashFiles('dprint.json') }} | ||
path: ~/.cache/dprint | ||
|
@@ -294,7 +294,7 @@ jobs: | |
- name: Save dprint plugin cache | ||
if: ${{ github.ref_name == 'main' }} | ||
id: cache-save | ||
uses: actions/cache/save@v4 | ||
uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4 | ||
with: | ||
key: ${{ steps.cache-restore.outputs.cache-primary-key }} | ||
path: ~/.cache/dprint | ||
|
@@ -303,8 +303,8 @@ jobs: | |
name: Test NAPI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiki-e/[email protected] | ||
- uses: dorny/paths-filter@v3 | ||
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | ||
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3 | ||
id: filter | ||
with: | ||
filters: | | ||
|
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
Oops, something went wrong.