TS impl #2
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
security-audit: | |
defaults: | |
run: | |
working-directory: impls/ts | |
shell: bash | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | |
- name: Set up Node.js | |
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 | |
with: | |
node-version: 18 | |
- name: Report known vulnerabilities | |
run: npm audit | |
test-with-node: | |
defaults: | |
run: | |
working-directory: impls/ts | |
shell: bash | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | |
- name: Set up Node.js | |
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 | |
with: | |
node-version: 18 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install latest npm | |
run: npm install -g npm@latest | |
- name: Install dependencies | |
run: npm ci | |
- name: Build lib | |
run: npm run build | |
- name: Run linter | |
run: npm run lint | |
- name: Run node tests | |
run: npm run test:node --ws -- --color | |
# test-with-browsers: | |
# # Run browser tests using macOS so that WebKit tests don't fail under a Linux environment | |
# runs-on: macos-latest | |
# steps: | |
# - name: Checkout source | |
# uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | |
# - name: Set up Node.js | |
# uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 | |
# with: | |
# node-version: 18 | |
# registry-url: https://registry.npmjs.org/ | |
# - name: Install latest npm | |
# run: npm install -g npm@latest | |
# - name: Install dependencies | |
# run: npm ci | |
# - name: Install Playwright Browsers | |
# run: npx playwright install --with-deps | |
# - name: Build lib | |
# run: npm run build | |
# - name: Run browser tests | |
# run: npm run test:browser --ws -- --color |