-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (39 loc) · 1.23 KB
/
run-tests.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
name: Node.js CI
on: [push]
jobs:
install_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Fetch latest main branch commit
run: git fetch --no-tags --depth=1 origin +refs/heads/main:refs/remotes/origin/main
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '14.17.6'
cache: 'yarn'
- run: yarn --frozen-lockfile
- run: node ./scripts/workspace_actions.js test
format_all:
runs-on: ubuntu-latest
needs: install_and_test
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Fetch latest main branch commit
run: git fetch --no-tags --depth=1 origin +refs/heads/main:refs/remotes/origin/main
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '14.17.6'
cache: 'yarn'
- run: yarn --frozen-lockfile
- run: node ./scripts/workspace_actions.js format
- name: Commit formatting changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Applied automatic formatting changes
branch: ${{ github.head_ref }}