Skip to content

CI

CI #330

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
branches:
- release
- dev
- main
types:
- opened
- reopened
- edited
- synchronize
schedule:
- cron: '38 3 * * *'
permissions:
actions: read
contents: read
jobs:
main:
runs-on: ubuntu-latest
defaults:
run:
working-directory: 'frontend'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache Node modules
uses: actions/cache@v3
with:
path: |
frontend/node_modules
~/.cache/yarn
key: yarn-${{ hashFiles('frontend/package.json') }}
restore-keys: |
yarn-${{ hashFiles('frontend/package.json') }}
yarn-
- name: Run install
uses: borales/actions-yarn@v5
with:
cmd: install
dir: 'frontend'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # if needed
- run: yarn install --frozen-lockfile
- uses: nrwl/nx-set-shas@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: yarn nx affected -t lint test build