build(deps): Bump @babel/core from 7.22.9 to 7.22.10 #1967
Workflow file for this run
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
name: "🔍 Tests" | |
on: | |
pull_request: | |
branches: [main] | |
merge_group: | |
workflow_dispatch: | |
jobs: | |
linting: | |
name: lint | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: "npm" | |
- name: install dependencies | |
run: npm install | |
- name: install dependencies with apt | |
run: | | |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main' | |
sudo apt-get install clang-tidy-16 | |
sudo rm -f /usr/bin/clang-tidy | |
sudo ln -s /usr/bin/clang-tidy-16 /usr/bin/clang-tidy | |
- name: build fuzzer | |
# Build the native addon so that CMake generates compile_commands.json that is needed by clang-tidy | |
run: npm run build [email protected]/fuzzer | |
- name: check formatting and linting | |
run: npm run check | |
unit_tests: | |
name: unit tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, windows-2019, macos-11] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: "npm" | |
- name: MSVC (windows) | |
uses: ilammy/msvc-dev-cmd@v1 | |
if: contains(matrix.os, 'windows') | |
- name: install dependencies | |
run: npm install | |
- name: build project | |
run: npm run build | |
- name: build fuzzer | |
run: npm run build [email protected]/fuzzer | |
- name: run all tests | |
run: npm run test | |
fuzz_tests: | |
name: fuzz tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: "npm" | |
- name: install dependencies | |
run: npm install | |
- name: build project | |
run: npm run build | |
- name: build fuzzer | |
run: npm run build [email protected]/fuzzer | |
- name: run all fuzz tests | |
run: node fuzztests/runFuzzTests.js | |
end-to-end: | |
name: end-to-end | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: "npm" | |
- name: pack jazzer.js | |
run: cd end-to-end && ./package-jazzer-js.sh | |
- name: build example | |
run: cd end-to-end && npm install --save-dev *.tgz && npm run build | |
- name: run tests | |
run: cd end-to-end && npx jest | |
auto-merge: | |
needs: | |
- linting | |
- unit_tests | |
- fuzz_tests | |
- end-to-end | |
permissions: | |
pull-requests: write | |
contents: write | |
runs-on: ubuntu-20.04 | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
steps: | |
- name: Dependabot metadata | |
id: metadata | |
uses: dependabot/[email protected] | |
with: | |
github-token: "${{ secrets.GITHUB_TOKEN }}" | |
- name: Approve | |
if: | |
${{steps.metadata.outputs.update-type != | |
'version-update:semver-major'}} | |
run: gh pr review --approve "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Enable auto-merge | |
if: | |
${{steps.metadata.outputs.update-type != | |
'version-update:semver-major'}} | |
run: gh pr merge --auto --rebase "$PR_URL" | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |