-
Notifications
You must be signed in to change notification settings - Fork 25
48 lines (40 loc) · 1.04 KB
/
jobs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Workflow
on:
pull_request:
branches:
- master
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
review-warnings-and-build:
name: "Source files are prettified, then verify if build is possible"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Check out Code
uses: actions/checkout@v3
- name: Read .nvmrc
id: node_version
run: echo "$(cat .nvmrc)" && echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_ENV
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NVMRC }}
- name: Install Dependencies
continue-on-error: false
run: |
corepack enable
yarn install --immutable
- name: Check if build is correct
continue-on-error: false
run: |
yarn build
- name: Check if Files are Prettified
continue-on-error: false
run: |
./check-prettier.sh