Skip to content

chore(deps): update actions/checkout action to v4 #562

chore(deps): update actions/checkout action to v4

chore(deps): update actions/checkout action to v4 #562

Workflow file for this run

on:
pull_request:
types: [opened, synchronize, reopened]
# cancel previous runs on the same PR
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
name: ⛷ PR tests
env:
CI: true
NODE_VERSION: 20
HUSKY: 0
defaults:
run:
shell: bash
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 8.6.4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Tests
run: pnpm test
test-examples:
runs-on: ubuntu-latest
services:
# Postgres image for backend integration tests
postgres:
image: postgres:14-alpine
env:
POSTGRES_DB: seed
POSTGRES_USER: seed
POSTGRES_PASSWORD: Ge0rgesMoustaki
ports:
# Maps tcp port 5432 on service container to the host
- 5434:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
defaults:
run:
working-directory: ./examples/bifrost-starter
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 8.6.4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: build
run: pnpm build
- name: linters
run: pnpm lint
- name: Tests
run: pnpm test
- name: Dependency Cruiser
run: pnpm test:circular
test-create-app:
runs-on: ubuntu-latest
services:
# Postgres image for backend integration tests
postgres:
image: postgres:14-alpine
env:
POSTGRES_DB: seed
POSTGRES_USER: seed
POSTGRES_PASSWORD: Ge0rgesMoustaki
ports:
# Maps tcp port 5432 on service container to the host
- 5434:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
defaults:
run:
working-directory: ./packages/create-bifrost-app
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 8.6.4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: build
run: pnpm build:no-interractive
- name: test
run: ./e2e/can-create-app.sh
security-check:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./examples/bifrost-starter
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 8.6.4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Check for vulnerable dependencies
run: pnpm run security
check-bundle-size:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./examples/bifrost-starter
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 8.6.4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Check bundlesize
working-directory: ./examples/bifrost-starter/apps/frontend
run: pnpm build:analyze:bundlesize