Skip to content

Fix CI status checks on PR from forks (#622) #1892

Fix CI status checks on PR from forks (#622)

Fix CI status checks on PR from forks (#622) #1892

Workflow file for this run

name: Webapp CI
on:
- push
- pull_request
jobs:
frontend:
name: Build frontend
runs-on: ubuntu-latest
defaults:
run:
working-directory: webapp
steps:
- uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3.1.1
with:
node-version: 14.x
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "path=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-dir-path.outputs.path }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: |
yarn install
- name: Frontend tests
run: |
make test