Skip to content

Bump actions/setup-node from 4 to 5 #51

Bump actions/setup-node from 4 to 5

Bump actions/setup-node from 4 to 5 #51

Workflow file for this run

# Automatically build, run unit and integration tests to detect errors early (CI provided by GitHub)
# including making pull requests review easier
# Human-readable name in the actions tab
name: Project linting and testing
# Build on every pull request regardless of the branch
# Wiki: https://help.github.com/en/actions/reference/events-that-trigger-workflows
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
web-lint:
name: Web lint and test
# Environment image - always use the newest OS
runs-on: ubuntu-latest
permissions:
# With at least one permission given, all default to read
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
# Latest stable
version: 10
# Use caching infrastructure from setup-node
run_install: false
- name: Install Node.js
uses: actions/setup-node@v5
with:
# Latest stable
node-version: 22
# Cache deps
cache: "pnpm"
# Install deps from lockfile to speed up resolution
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint web project
run: pnpm lint
- name: Test web project
run: pnpm test
golangci:
name: Scraper lint
runs-on: ubuntu-latest
permissions:
# With at least one permission given, all default to read
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: stable
# Project is inside a sub folder
cache-dependency-path: |
scraper/go.sum
- name: Download deps
run: go mod download
# Works only for scripts not for actions
working-directory: ./scraper
- name: Lint go
uses: golangci/golangci-lint-action@v8
with:
working-directory: ./scraper