build(deps-dev): bump puppeteer from 22.12.0 to 23.1.0 #833
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# When a new revision is pushed to a PR, cancel all in-progress CI runs for that | |
# PR. See https://docs.github.com/en/actions/using-jobs/using-concurrency | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.39.2 | |
- uses: actions/checkout@v4 | |
- run: deno fmt --check | |
- run: deno lint | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [18.x, 20.x, 21.x] | |
opa-version: | |
- 0.30.2 # last version with ABI 1.1, 0.31.0+ has ABI 1.2 | |
- 0.41.0 # 0.35.0 is the first release with https://github.com/open-policy-agent/opa/pull/4055 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Checkout OPA v${{ matrix.opa-version }} | |
uses: actions/checkout@v4 | |
with: | |
repository: open-policy-agent/opa | |
ref: v${{ matrix.opa-version }} | |
path: opa | |
- run: mkdir test/cases | |
- name: Prep OPA cases | |
working-directory: opa | |
# TODO(sr): This make target runs the tests, too, and we don't need | |
# this here. However, to untangle PRs, let's done some extra work now | |
# and fix this situation later. | |
run: make wasm-rego-test | |
# NOTE(sr): we've got to get rid of the opa checkout because the test | |
# runner would otherwise pick up any .js files it finds in there. | |
- name: Unpack OPA cases | |
run: > | |
tar zxvf opa/.go/cache/testcases.tar.gz --exclude='*.js' -C test/cases && | |
mv opa/test/cases/testdata testdata && | |
rm -rf opa/ | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Open Policy Agent ${{ matrix.opa-version }} | |
uses: open-policy-agent/setup-opa@v2 | |
with: | |
version: v${{ matrix.opa-version }} | |
- run: npm ci | |
- run: npm run build | |
- run: npm test | |
env: | |
OPA_CASES: test/cases/ | |
OPA_TEST_CASES: testdata | |
examples-node: | |
name: NodeJS examples | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: open-policy-agent/setup-opa@v2 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
- name: nodejs | |
run: > | |
npm ci | |
npm run build | |
./e2e.sh | |
examples-deno: | |
name: Deno examples | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: open-policy-agent/setup-opa@v2 | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.39.2 | |
- run: make | |
working-directory: examples/deno |