mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-21 03:47:16 +02:00
Update workflows
This commit is contained in:
parent
07bd33fa63
commit
9e9f204eeb
3 changed files with 25 additions and 13 deletions
8
.github/actions/pnpm-install/action.yml
vendored
Normal file
8
.github/actions/pnpm-install/action.yml
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
name: "pnpm Install"
|
||||||
|
description: "Runs pnpm install with --frozen-lockfile"
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- name: Run pnpm install
|
||||||
|
run: pnpm install --frozen-lockfile
|
||||||
|
shell: bash
|
6
.github/actions/setup-node/action.yml
vendored
6
.github/actions/setup-node/action.yml
vendored
|
@ -8,7 +8,7 @@ inputs:
|
||||||
cache:
|
cache:
|
||||||
description: "Package manager for caching"
|
description: "Package manager for caching"
|
||||||
required: false
|
required: false
|
||||||
default: "yarn"
|
default: "pnpm"
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
|
@ -17,3 +17,7 @@ runs:
|
||||||
with:
|
with:
|
||||||
node-version: ${{ inputs.node-version }}
|
node-version: ${{ inputs.node-version }}
|
||||||
cache: ${{ inputs.cache }}
|
cache: ${{ inputs.cache }}
|
||||||
|
- name: Install pnpm
|
||||||
|
uses: pnpm/action-setup@v2
|
||||||
|
with:
|
||||||
|
version: 8
|
||||||
|
|
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
|
@ -18,10 +18,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ./.github/actions/setup-node
|
- uses: ./.github/actions/setup-node
|
||||||
- uses: ./.github/actions/yarn-install
|
- uses: ./.github/actions/pnpm-install
|
||||||
|
|
||||||
- name: Check types
|
- name: Check types
|
||||||
run: yarn type-check
|
run: pnpm type-check
|
||||||
|
|
||||||
linting:
|
linting:
|
||||||
name: Linting
|
name: Linting
|
||||||
|
@ -29,10 +29,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ./.github/actions/setup-node
|
- uses: ./.github/actions/setup-node
|
||||||
- uses: ./.github/actions/yarn-install
|
- uses: ./.github/actions/pnpm-install
|
||||||
|
|
||||||
- name: Check linting rules
|
- name: Check linting rules
|
||||||
run: yarn lint
|
run: pnpm lint
|
||||||
|
|
||||||
unit-tests:
|
unit-tests:
|
||||||
name: Unit tests
|
name: Unit tests
|
||||||
|
@ -40,10 +40,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ./.github/actions/setup-node
|
- uses: ./.github/actions/setup-node
|
||||||
- uses: ./.github/actions/yarn-install
|
- uses: ./.github/actions/pnpm-install
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: yarn test:unit
|
run: pnpm test:unit
|
||||||
|
|
||||||
# Label of the container job
|
# Label of the container job
|
||||||
integration-tests:
|
integration-tests:
|
||||||
|
@ -55,26 +55,26 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ./.github/actions/setup-node
|
- uses: ./.github/actions/setup-node
|
||||||
- uses: ./.github/actions/yarn-install
|
- uses: ./.github/actions/pnpm-install
|
||||||
|
|
||||||
- name: Install system dependencies
|
- name: Install system dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
||||||
- name: Install playwright dependencies
|
- name: Install playwright dependencies
|
||||||
run: yarn playwright install --with-deps chromium
|
run: pnpm playwright install --with-deps chromium
|
||||||
|
|
||||||
- name: Create production build
|
- name: Create production build
|
||||||
run: yarn turbo build:test --filter=@rallly/web
|
run: pnpm turbo build:test --filter=@rallly/web
|
||||||
|
|
||||||
- name: Start services
|
- name: Start services
|
||||||
run: yarn docker:up
|
run: pnpm docker:up
|
||||||
|
|
||||||
- name: Setup database
|
- name: Setup database
|
||||||
run: yarn db:deploy
|
run: pnpm db:deploy
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: yarn turbo test:integration
|
run: pnpm turbo test:integration
|
||||||
|
|
||||||
- name: Upload artifact playwright-report
|
- name: Upload artifact playwright-report
|
||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue