38 lines
832 B
YAML
38 lines
832 B
YAML
name: Build Check
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- develop
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.16.1]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18.16.1
|
|
cache: 'yarn'
|
|
- run: CYPRESS_INSTALL_BINARY=0 yarn install --immutable --inline-builds
|
|
- run: CYPRESS_INSTALL_BINARY=0 yarn moon ci
|
|
- uses: 'moonrepo/run-report-action@v1'
|
|
if: success() || failure()
|
|
with:
|
|
access-token: ${{ secrets.GITHUB_TOKEN }}
|