-
Notifications
You must be signed in to change notification settings - Fork 14
53 lines (48 loc) · 1.48 KB
/
ci-assign-project.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: "CI assign project"
on:
pull_request:
types: [opened, synchronize, edited, closed]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
assign-project-changed:
name: Assign project changed
runs-on: ubuntu-latest
outputs:
changed: ${{ steps.changed-assign-project.outputs.any_changed }}
steps:
- uses: actions/checkout@v3
- name: Change assign project
id: changed-assign-project
uses: tj-actions/[email protected]
with:
files: |
**/gh-projects/assign-to-project/**/*
lint:
name: Lint
runs-on: ubuntu-latest
# Avoid running this if no files under assign-to-project was changed
needs: assign-project-changed
if: ${{ needs.assign-project-changed.outputs.changed == 'true' }}
steps:
- uses: actions/checkout@v3
- uses: ./setups/node
- run: |
npm install
npm run lint
working-directory: ./gh-projects/assign-to-project
test:
name: Run tests
runs-on: ubuntu-latest
# Avoid running this if no files under assign-to-project was changed
needs: assign-project-changed
if: ${{ needs.assign-project-changed.outputs.changed == 'true' }}
steps:
- uses: actions/checkout@v3
- uses: ./setups/node
- name: Run tests
run: |
npm install
npm run test
working-directory: ./gh-projects/assign-to-project