-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 1001 Bytes
/
Copy pathogp-dependencies-checker.yml
File metadata and controls
34 lines (29 loc) · 1001 Bytes
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
name: OGP Dependencies Checker
on:
pull_request:
types: [opened, synchronize, labeled]
jobs:
build:
# プルリクエストに dependencies ラベルを付けたとき
# dependencies ラベルがついている状態で、 Push したとき
if: |
((github.event.action == 'labeled') &&
(github.event.label.name == 'ogp-dependencies')) ||
((github.event.action == 'synchronize') &&
contains(github.event.pull_request.labels.*.name, 'ogp-dependencies'))
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [latest]
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ matrix.node-version }}
- name: npm ci
run: npm ci
- name: Test
run: npm run test
env:
CI: true