-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
5b7e1ad
commit 2fe7bd5
Showing
25 changed files
with
131 additions
and
131 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,31 +15,31 @@ 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] | ||
- uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0 | ||
with: | ||
restore-cache: false | ||
tools: just,cargo-shear@1,dprint | ||
components: rustfmt | ||
|
||
- 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,9 +64,9 @@ jobs: | |
|
||
steps: | ||
- name: Checkout Branch | ||
uses: taiki-e/[email protected] | ||
uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1 | ||
|
||
- uses: oxc-project/[email protected] | ||
- uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0 | ||
with: | ||
cache-key: benchmark-${{ matrix.component }} | ||
save-cache: ${{ github.ref_name == 'main' }} | ||
|
@@ -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,9 +115,9 @@ 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] | ||
- uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0 | ||
with: | ||
cache-key: benchmark-linter | ||
save-cache: ${{ github.ref_name == 'main' }} | ||
|
@@ -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,9 +14,9 @@ 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] | ||
- uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0 | ||
with: | ||
cache-key: warm | ||
tools: cargo-bloat | ||
|
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] | ||
- uses: oxc-project/setup-rust@cd82e1efec7fef815e2c23d296756f31c7cdc03d # v1.0.0 | ||
|
||
- name: Install cargo-llvm-lines | ||
uses: taiki-e/[email protected] | ||
uses: taiki-e/install-action@8c39981484df4e7ba41af8e8e078ac546d5e1b11 # v2.46.8 | ||
with: | ||
tool: cargo-llvm-lines | ||
|
||
|
Oops, something went wrong.