-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.07 KB
/
ci.yaml
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
name: CI
on:
workflow_dispatch:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
with:
node-version-file: package.json
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test all actions
run: yarn all
- name: Build all actions
run: yarn workspaces run all
- name: Set git config
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Commit and push
run: |
git add -N . # 新規ファイルを含める
if ! git diff --exit-code --quiet; then
git add .
git commit -m "feat: build all actions"
git push
fi