Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
fee3663
Bundle Actions using esbuild
henrymercer Aug 21, 2025
67d4718
Compile sources to separate directory for tests
henrymercer Aug 21, 2025
8b7a4ec
Remove `node_modules` directory
henrymercer Aug 21, 2025
88d8b86
Check in compiled files
henrymercer Aug 21, 2025
6d34e4e
Use "Rebuild" workflow instead of "Update dependencies"
henrymercer Aug 20, 2025
31ee7f5
Install dependencies in PR checks
henrymercer Aug 21, 2025
06f83b7
Run more checks on `push`
henrymercer Aug 21, 2025
3edad3e
Combine basic jobs to reduce Actions usage
henrymercer Aug 21, 2025
a2df83b
Cache npm dependencies
henrymercer Aug 21, 2025
d8905c2
Don't run linter in CI on Windows
henrymercer Aug 21, 2025
f04e228
Merge branch 'main' into henrymercer/bundle
henrymercer Aug 21, 2025
3e725de
Copy `defaults.json` to `lib`
henrymercer Aug 21, 2025
f8c0d73
Install dependencies in code scanning config test
henrymercer Aug 21, 2025
879c788
Install npm dependencies where necessary in generated workflows
henrymercer Aug 21, 2025
88f7d3d
Install dependencies in query filters tests
henrymercer Aug 21, 2025
36468ba
Delete expected queries runs check
henrymercer Aug 21, 2025
786d3aa
Remove unused import in build script
henrymercer Aug 21, 2025
4da503e
Use `npm ci` in CI
henrymercer Aug 21, 2025
8a3bfe6
Transpile separately in both build and test steps
henrymercer Aug 22, 2025
e274fb8
Implement clean and copy as custom plugins
henrymercer Aug 22, 2025
ca5a69b
Specify esbuild target
henrymercer Aug 22, 2025
d7c1640
Avoid automatic semicolon insertion
henrymercer Aug 22, 2025
d2dfa8c
Check in precompiled `upload-lib.ts` for testing environments
henrymercer Aug 27, 2025
68be0dc
Merge branch 'main' into henrymercer/bundle
henrymercer Aug 29, 2025
6d7d2c6
Bump minor version number
henrymercer Aug 29, 2025
138655e
Update `CONTRIBUTING.md`
henrymercer Aug 29, 2025
3e493e7
Remove `removeNPMAbsolutePaths`
henrymercer Aug 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Combine basic jobs to reduce Actions usage
  • Loading branch information
henrymercer committed Aug 21, 2025
commit 3edad3eebd6f0cc8ec9eeae4051e359fe42f9639
82 changes: 30 additions & 52 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,74 +9,52 @@ on:
workflow_dispatch:

jobs:
check-js:
name: Check JS
runs-on: ubuntu-latest
timeout-minutes: 45
unit-tests:
name: Unit Tests
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
permissions:
contents: read
security-events: write # needed to upload ESLint results

steps:
- name: Checkout
uses: actions/checkout@v5

- name: Install dependencies
run: npm install

- name: Lint
id: lint
run: npm run lint-ci

- name: Upload sarif
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: eslint.sarif
category: eslint

- name: Check generated JS
run: .github/workflows/script/check-js.sh

check-file-contents:
name: Check file contents
permissions:
contents: read
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
timeout-minutes: 45

steps:
- name: Checkout
uses: actions/checkout@v5
- uses: actions/checkout@v5

- name: Install dependencies
run: |
# Use the system Bash shell to ensure we can run commands like `npm install`
# that are not available in the default shell on Windows.
npm config set script-shell bash
npm install

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11

# Ensure the generated PR check workflows are up to date.
- name: Verify compiled JS up to date
run: .github/workflows/script/check-js.sh

- name: Verify PR checks up to date
run: .github/workflows/script/verify-pr-checks.sh

npm-test:
name: Unit Test
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
permissions:
contents: read
runs-on: ${{ matrix.os }}
timeout-minutes: 45
- name: Run unit tests
run: npm test

steps:
- uses: actions/checkout@v5
- name: npm test
run: |
# Run any commands referenced in package.json using Bash, otherwise
# we won't be able to find them on Windows.
npm config set script-shell bash
npm install
npm test
- name: Lint
id: lint
run: npm run lint-ci

- name: Upload sarif
uses: github/codeql-action/upload-sarif@v3
if: matrix.os == 'ubuntu-latest'
with:
sarif_file: eslint.sarif
category: eslint

check-node-version:
if: github.event.pull_request
Expand Down