]> git.immae.eu Git - github/bastienwirtz/homer.git/blame - .github/workflows/integration.yml
Switch package manager to pnpm
[github/bastienwirtz/homer.git] / .github / workflows / integration.yml
CommitLineData
a25e1b1a
BW
1# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3
e6ba84d3 4name: Integration
a25e1b1a
BW
5
6on:
7 push:
8 branches: [ main ]
9 pull_request:
10 branches: [ main ]
11
12jobs:
13 build:
14
15 runs-on: ubuntu-latest
16
17 strategy:
18 matrix:
f2f03eb3 19 node-version: [20.x]
a25e1b1a
BW
20 # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21
22 steps:
4b639b1c
BW
23 -
24 name: Checkout
bcebb3e6 25 uses: actions/checkout@v4
0740fb31
BW
26 -
27 name: pnpm setup
28 uses: pnpm/action-setup@v3
29 with:
30 version: 8
4b639b1c
BW
31 -
32 name: Use Node.js ${{ matrix.node-version }}
bcebb3e6 33 uses: actions/setup-node@v4
a25e1b1a
BW
34 with:
35 node-version: ${{ matrix.node-version }}
0740fb31 36 cache: 'pnpm'
4b639b1c
BW
37 -
38 name: install dependencies
0740fb31 39 run: pnpm install --frozen-lockfile
4b639b1c
BW
40 -
41 name: Check code style & potentential issues
0740fb31 42 run: pnpm lint