2021-08-02 17:43:53 +08:00
|
|
|
name: Build PR (Standard)
|
2021-08-03 03:33:37 +08:00
|
|
|
|
|
|
|
on: pull_request
|
2020-03-13 07:20:56 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ${{ matrix.os }}
|
2021-08-03 03:56:34 +08:00
|
|
|
if: ${{ github.actor != 'dependabot[bot]' }}
|
2020-03-13 07:20:56 +08:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-05-26 08:47:11 +08:00
|
|
|
node-version: [20.x]
|
2020-03-13 07:20:56 +08:00
|
|
|
os: [ubuntu-latest]
|
|
|
|
steps:
|
2021-08-03 03:33:37 +08:00
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Use Node.js ${{ matrix.node_version }}
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node_version }}
|
|
|
|
- name: npm install, build, and test
|
|
|
|
run: |
|
2023-02-26 02:31:10 +08:00
|
|
|
export NODE_OPTIONS=--openssl-legacy-provider
|
2021-08-03 03:33:37 +08:00
|
|
|
npm install
|
|
|
|
npm run coverage
|
|
|
|
env:
|
|
|
|
CI: true
|