homer/.github/workflows/integration.yml

35 lines
857 B
YAML
Raw Normal View History

2021-10-10 09:23:35 +02:00
# 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
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
2021-12-12 09:45:54 +01:00
name: Integration
2021-10-10 09:23:35 +02:00
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
2021-10-10 09:23:35 +02:00
steps:
2022-07-11 20:58:57 +02:00
-
name: Checkout
2024-03-11 09:54:09 +01:00
uses: actions/checkout@v4
2024-04-22 19:55:25 +02:00
-
name: pnpm setup
uses: pnpm/action-setup@v4
2022-07-11 20:58:57 +02:00
-
2024-10-16 14:13:43 +02:00
name: Node.js setup
2024-03-11 09:54:09 +01:00
uses: actions/setup-node@v4
2021-10-10 09:23:35 +02:00
with:
2024-10-16 14:13:43 +02:00
node-version: 22
2024-04-22 19:55:25 +02:00
cache: 'pnpm'
2022-07-11 20:58:57 +02:00
-
name: install dependencies
2024-04-22 19:55:25 +02:00
run: pnpm install --frozen-lockfile
2022-07-11 20:58:57 +02:00
-
name: Check code style & potentential issues
2024-04-22 19:55:25 +02:00
run: pnpm lint