2021-08-09 17:30:25 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lint:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
node: [14]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node }}
|
|
|
|
cache: 'yarn'
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn --immutable
|
|
|
|
|
|
|
|
- name: Lint
|
|
|
|
run: yarn lint
|
|
|
|
|
|
|
|
test:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-08-09 18:24:52 +00:00
|
|
|
os: [ubuntu-latest, windows-latest]
|
2021-08-09 17:30:25 +00:00
|
|
|
node: [14]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node }}
|
|
|
|
cache: 'yarn'
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn --immutable
|
|
|
|
|
2021-10-02 16:01:17 +00:00
|
|
|
- name: Build
|
|
|
|
run: yarn build
|
2021-08-09 17:30:25 +00:00
|
|
|
|
2021-08-10 00:27:23 +00:00
|
|
|
- name: Test (unit)
|
|
|
|
run: yarn test:unit
|
|
|
|
|
2021-08-09 17:30:25 +00:00
|
|
|
- name: Test (presets)
|
|
|
|
run: yarn test:presets
|
|
|
|
|
2021-09-05 21:21:33 +00:00
|
|
|
test-bridge:
|
2021-08-09 17:30:25 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-08-09 18:24:52 +00:00
|
|
|
os: [ubuntu-latest, windows-latest]
|
2021-08-09 17:30:25 +00:00
|
|
|
node: [14]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node }}
|
|
|
|
cache: 'yarn'
|
|
|
|
cache-dependency-path: |
|
|
|
|
yarn.lock
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn --immutable
|
|
|
|
|
2021-10-02 16:01:17 +00:00
|
|
|
- name: Build
|
|
|
|
run: yarn build
|
2021-08-09 17:30:25 +00:00
|
|
|
|
2021-09-05 21:21:33 +00:00
|
|
|
- name: Test (presets bridge)
|
|
|
|
run: yarn test:bridge
|
2021-08-09 17:30:25 +00:00
|
|
|
|
|
|
|
build-release:
|
|
|
|
needs:
|
|
|
|
- test
|
2021-09-05 21:21:33 +00:00
|
|
|
- test-bridge
|
2021-08-09 17:30:25 +00:00
|
|
|
- lint
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
node: [14]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: ${{ matrix.node }}
|
|
|
|
cache: 'yarn'
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn --immutable
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: yarn build
|
|
|
|
|
|
|
|
- name: Release Edge
|
|
|
|
if: |
|
|
|
|
github.event_name == 'push' &&
|
|
|
|
!contains(github.event.head_commit.message, '[skip-release]') &&
|
|
|
|
!contains(github.event.head_commit.message, 'chore') &&
|
|
|
|
!contains(github.event.head_commit.message, 'docs')
|
|
|
|
run: ./scripts/release-edge.sh
|
|
|
|
env:
|
|
|
|
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
|