-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (32 loc) · 1.03 KB
/
build.yaml
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
name: General Repo Health and Test Status
on:
pull_request:
push:
branches:
- main
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set bash to strict mode
run: set -euox pipefail
- name: Set Node.js 22.x
uses: actions/setup-node@v3
with:
node-version: 22.x
- name: Install yarn
run: npm -g install yarn
- name: Install dependencies
run: npx yarn && npx yarn --cwd ./ts
- name: Lint
run: npx yarn lint-staged
- name: Prettier check
run: npx prettier -c ts/**/src/**/*.ts cm360/**/*.js googleads/**/*.js
- name: Print errors
run: find . -name "*.warn" -type f -exec cat {} \;
- name: Fail on errors
if: ${{ steps.lint.outputs.error || steps.test.outputs.error || steps.build-sa360.outputs.error || steps.build-dv360.outputs.error || steps.build-dev-sa360.outputs.error }}
run: exit 1
- name: Test everything
run: npx yarn test