chore(deps-dev): bump @types/node from 22.8.7 to 22.9.3 #72
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test & Build | |
on: | |
push: | |
branches: [ main, develop ] | |
pull_request: | |
branches: [ main, develop ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
actions: read | |
contents: read | |
pull-requests: write | |
statuses: read | |
jobs: | |
lint-and-format: | |
runs-on: ubuntu-latest | |
container: | |
image: node:22 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache and restore node_modules | |
id: cache-node | |
uses: actions/cache@v4 | |
with: | |
path: ./node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('./yarn.lock') }} | |
- run: yarn | |
if: steps.cache-node.outputs.cache-hit != 'true' | |
- run: yarn lint | |
- run: yarn format | |
test: | |
needs: [ lint-and-format ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Start Planka | |
run: docker compose -f "docker-compose.yml" up -d --build | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: 'yarn' | |
- run: yarn | |
- run: yarn test | |
- name: Stop Planka | |
if: always() | |
run: docker compose -f "docker-compose.yml" down | |
build: | |
needs: [ test ] | |
runs-on: ubuntu-latest | |
container: | |
image: node:22 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache and restore node_modules | |
id: cache-node | |
uses: actions/cache@v4 | |
with: | |
path: ./node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('./yarn.lock') }} | |
- run: yarn | |
if: steps.cache-node.outputs.cache-hit != 'true' | |
- run: yarn build | |
- name: "Compress out folder" | |
run: tar -zcvf dist.tar.gz dist/ | |
- name: "Upload /out of build" | |
uses: actions/upload-artifact@v4 | |
with: | |
name: build | |
path: dist.tar.gz | |
retention-days: 1 |