-
Notifications
You must be signed in to change notification settings - Fork 7
53 lines (50 loc) · 1.2 KB
/
client-test.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: Test codes
on:
pull_request:
branches:
- main
env:
workdir: client
node-version: lts/*
TZ: Asia/Tokyo
jobs:
front-filter:
runs-on: ubuntu-latest
permissions:
contents: 'read'
pull-requests: 'read'
outputs:
client: ${{ steps.changes.outputs.client }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Check for file changes
uses: dorny/paths-filter@v2
id: changes
with:
token: ${{ github.token }}
filters: .github/filters.yml
run-test:
runs-on: ubuntu-latest
needs: front-filter
if: needs.front-filter.outputs.client == 'true'
defaults:
run:
working-directory: ${{ env.workdir }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: ${{ env.node-version }}
- name: Install Dependencies
run: yarn install --immutable
- name: Run test
run: yarn run test
run-test-check:
if: ${{ ! failure() }}
needs: run-test
runs-on: ubuntu-latest
steps:
- run: echo "Test is successfully executed. "