Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Commit c63071d

Browse files
committed
Use recent GitHub actions
1 parent 8984afa commit c63071d

1 file changed

Lines changed: 33 additions & 33 deletions

File tree

.github/workflows/build.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ name: Build
66
# events but only for the master branch
77
on:
88
push:
9-
branches: [ master ]
9+
branches: [master]
1010
pull_request:
11-
branches: [ master ]
11+
branches: [master]
1212

1313
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1414
jobs:
@@ -19,34 +19,34 @@ jobs:
1919

2020
# Steps represent a sequence of tasks that will be executed as part of the job
2121
steps:
22-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23-
- uses: actions/checkout@v2
24-
25-
- name: Cache
26-
uses: actions/cache@v2
27-
env:
28-
cache-name: cache-node-modules-v3
29-
with:
30-
path: ~/.pnpm-store
31-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('package.json') }}
32-
33-
- name: Use Node.js
34-
uses: actions/setup-node@v2
35-
with:
36-
node-version: '14'
37-
- name: Install pnpm
38-
run: npm i -g pnpm
39-
- name: Install dependencies
40-
run: pnpm install
41-
42-
- name: Build the project
43-
run: pnpm ci:all
44-
45-
- name: Upload coverage report
46-
env:
47-
CODACY_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
48-
if: ${{ env.CODACY_TOKEN }}
49-
uses: codacy/codacy-coverage-reporter-action@v1
50-
with:
51-
project-token: ${{ env.CODACY_TOKEN }}
52-
coverage-reports: target/coverage/lcov.info
22+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23+
- uses: actions/checkout@v3
24+
25+
- name: Cache
26+
uses: actions/cache@v3
27+
env:
28+
cache-name: cache-node-modules-v3
29+
with:
30+
path: ~/.pnpm-store
31+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('package.json') }}
32+
33+
- name: Use Node.js
34+
uses: actions/setup-node@v3
35+
with:
36+
node-version: '16'
37+
- name: Install pnpm
38+
run: npm i -g pnpm
39+
- name: Install dependencies
40+
run: pnpm install
41+
42+
- name: Build the project
43+
run: pnpm ci:all
44+
45+
- name: Upload coverage report
46+
env:
47+
CODACY_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
48+
if: ${{ env.CODACY_TOKEN }}
49+
uses: codacy/codacy-coverage-reporter-action@v1
50+
with:
51+
project-token: ${{ env.CODACY_TOKEN }}
52+
coverage-reports: target/coverage/lcov.info

0 commit comments

Comments
 (0)