forked from projectsophon/hardhat-circom
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.01 KB
/
format.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
name: Format
on: [push]
jobs:
format:
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: [16.x]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout project
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Setup Node/Yarn
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Cache of node_modules
uses: actions/cache@v2
id: node-modules-cache
with:
path: |
node_modules
**/node_modules
key: ${{ matrix.os }}-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn --frozen-lockfile --prefer-offline
- name: Format project
run: yarn format
- name: Commit format updates
uses: phated/git-auto-commit-action@v4
with:
commit_message: "chore: Fix formatting"