forked from mitsuharu/react-native-sunmi-printer-library
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 984 Bytes
/
ci.yml
File metadata and controls
43 lines (34 loc) · 984 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
35
36
37
38
39
40
41
42
43
# PRが作成または更新されたときに実行されるCIワークフロー
# Lintとテストを実行
name: CI
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: write
pull-requests: write
jobs:
lint_and_test:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
# リポジトリをチェックアウト
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
# Node.jsをセットアップ
- name: Setup Node.js
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version-file: '.node-version'
cache: 'npm'
- name: Install dependencies
run: |
corepack enable
yarn install --immutable
- name: Lint
run: |
yarn typecheck
yarn lint
- name: Test
run: yarn test