generated from kurone-kito/vpm-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (49 loc) · 1.33 KB
/
push.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
46
47
48
49
name: The CI workflow on push
on:
push:
permissions:
contents: read
jobs:
build:
defaults:
run:
shell: ${{ matrix.platform.shell }}
name: The build process
runs-on: ${{ matrix.platform.os }}
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Stages the pushed branch
uses: actions/checkout@v4
- name: Pre-prepare the Node.js environment
uses: actions/setup-node@v4
with:
node-version-file: .node-version
- name: Enable the corepack because of the pnpm
run: corepack enable
- name: Post-prepare the Node.js environment
uses: actions/setup-node@v4
with:
cache: ${{ !env.ACT && 'pnpm' || '' }}
node-version-file: .node-version
- env:
HUSKY: 0
name: Install the dependencies
run: pnpm install --prefer-frozen-lockfile
- name: Run the tests
run: pnpm run test
- name: Run the build
run: pnpm run build
strategy:
matrix:
platform:
- os: ubuntu-latest
shell: bash
- os: windows-latest
shell: bash
- os: windows-latest
shell: powershell
fail-fast: false
timeout-minutes: 30