1
0
mirror of https://github.com/barthuijgen/factorio-sites.git synced 2025-01-25 11:53:24 +02:00
2021-03-12 00:41:46 +01:00

28 lines
807 B
YAML

name: Validate
on: pull_request
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "14.x"
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn --prefer-offline
- run: yarn db-gen
- run: yarn nx run-many --all --target=lint
- run: yarn nx run-many --all --target=test "--ci"
- run: yarn nx build blueprints