Initial commit

This commit is contained in:
Benjamin Canac
2021-11-16 12:49:00 +01:00
commit d1902448ae
19 changed files with 7375 additions and 0 deletions

60
.github/workflows/ci-dev.yml vendored Normal file
View File

@@ -0,0 +1,60 @@
name: ci-dev
on:
push:
branches:
- dev
pull_request:
branches:
- dev
jobs:
ci:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] # macos-latest, windows-latest
node: [16]
steps:
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Checkout
uses: actions/checkout@master
with:
persist-credentials: false
fetch-depth: 0
- name: Cache
uses: actions/cache@v2
with:
path: node_modules
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/yarn.lock')) }}
- name: Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn
- name: Lint
run: yarn lint
- name: Prepare
run: node ./node_modules/playwright/install.js
- name: Test
run: yarn test
- name: Coverage
uses: codecov/codecov-action@v2
- name: Build
run: yarn build
- name: Release Edge
if: github.event_name == 'push'
run: ./scripts/release-edge.sh
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}