2019-11-03 15:18:37 +01:00
|
|
|
name: Build
|
|
|
|
|
2022-05-10 17:29:50 -07:00
|
|
|
on:
|
|
|
|
push: {}
|
|
|
|
pull_request:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- synchronize
|
|
|
|
- ready_for_review
|
2019-11-03 15:18:37 +01:00
|
|
|
|
2022-04-25 23:38:27 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2019-11-03 15:18:37 +01:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-07-15 10:22:33 +02:00
|
|
|
node-version: [16.x]
|
2019-11-03 15:18:37 +01:00
|
|
|
steps:
|
2022-03-07 19:18:05 +01:00
|
|
|
- uses: actions/checkout@v3
|
2019-11-17 20:57:55 +01:00
|
|
|
|
2019-11-03 15:18:37 +01:00
|
|
|
- name: Setup Node.js ${{ matrix.node-version }}
|
2022-02-28 08:17:30 +01:00
|
|
|
uses: actions/setup-node@v3
|
2019-11-03 15:18:37 +01:00
|
|
|
with:
|
2021-08-05 22:35:34 +02:00
|
|
|
cache: yarn
|
2019-11-03 15:18:37 +01:00
|
|
|
node-version: ${{ matrix.node-version }}
|
2019-11-17 20:57:55 +01:00
|
|
|
|
2019-11-03 15:18:37 +01:00
|
|
|
- name: Install Yarn
|
2019-11-12 22:10:16 +01:00
|
|
|
run: npm i yarn --global
|
2019-11-17 21:41:55 +01:00
|
|
|
|
2020-02-21 10:00:36 +01:00
|
|
|
- name: Install Packages
|
|
|
|
run: |
|
|
|
|
yarn install --frozen-lockfile
|
|
|
|
env:
|
|
|
|
CYPRESS_CACHE_FOLDER: .cache/Cypress
|
2019-11-17 21:41:55 +01:00
|
|
|
|
2019-11-03 15:18:37 +01:00
|
|
|
- name: Run Build
|
|
|
|
run: yarn build
|
2020-02-16 09:40:35 +01:00
|
|
|
|
2020-01-08 20:52:39 +01:00
|
|
|
- name: Upload Build as Artifact
|
2022-04-11 09:55:28 +02:00
|
|
|
uses: actions/upload-artifact@v3
|
2020-01-08 20:52:39 +01:00
|
|
|
with:
|
|
|
|
name: dist
|
|
|
|
path: dist
|