Skip to content

Update build-app.yml for Azure Pipelines #846

Update build-app.yml for Azure Pipelines

Update build-app.yml for Azure Pipelines #846

Workflow file for this run

name: Checks
on:
pull_request:
push:
branches:
- master
concurrency:
group: checks-${{ github.ref }}
cancel-in-progress: true
jobs:
run-checks:
name: Run checks
runs-on: ubuntu-20.04
steps:
- name: Check out Git repository # clone the repo to local ci workspace
uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 14
cache: 'yarn'
cache-dependency-path: '**/yarn.lock'
- uses: actions/cache@v2
name: Cache Node Modules
with:
path: |
node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install yarn dependencies
run: |
yarn install --frozen-lockfile
- name: Lint
run: |
yarn lint
- name: Typescript
run: |
yarn typescript
- name: GraphQL
env:
CONTENTFUL_API_KEY: ${{ secrets.CONTENTFUL_API_KEY }}
run: |
yarn generate >outout.txt 2> error.txt
! grep "FAILED" ./error.txt
git diff --exit-code