forked from searleser97/graphite-cli
-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (49 loc) · 1.4 KB
/
pull_request.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
49
50
51
52
53
name: Pull request CI
on:
pull_request:
types: [
# Default pull_request trigger types.
opened,
synchronize,
reopened,
]
jobs:
lint_and_fast_tests:
name: 'Run CLI tests'
runs-on: ubuntu-latest
steps:
# Basic setup
- uses: actions/checkout@v2
with:
clean: 'false'
fetch-depth: 0
- uses: actions/setup-node@v3
- name: Install
run: yarn install --immutable
- name: Lint
run: yarn workspace @withgraphite/graphite-cli run lint
- name: Build
run: yarn turbo run build
- name: Setup git
run: git config --global user.email "test@gmail.com" && git config --global user.name "test"
- name: Git Version
run: git --version
- name: Test
run: yarn workspace @withgraphite/graphite-cli run test-ci
superlinter:
name: 'Run superlinter'
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
# Full git history is needed to get a proper list of changed files within `super-linter`
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter@v4
continue-on-error: true
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TYPESCRIPT_DEFAULT_STYLE: prettier