Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

47 - Migrate solidhunter #1

47 - Migrate solidhunter

47 - Migrate solidhunter #1

Workflow file for this run

name: CI
on:
pull_request:
branches: [main, dev]
jobs:
setup:
uses: ./.github/workflows/detect-workspace-changes.yml
with:
from: ${{ github.head_ref }}
since: ${{ github.base_ref }}
lint:
runs-on: ubuntu-latest
needs: setup
strategy:
fail-fast: false
matrix:
workspace: ${{ fromJson(needs.setup.outputs.workspaces) }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Setup yarn
id: setup-yarn
run: |
corepack enable
corepack prepare yarn@stable --activate
yarn plugin import workspace-tools
- run: yarn workspace ${{ matrix.workspace.name }} run lint
format:
runs-on: ubuntu-latest
needs: setup
strategy:
fail-fast: false
matrix:
workspace: ${{ fromJson(needs.setup.outputs.workspaces) }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Setup yarn
id: setup-yarn
run: |
corepack enable
corepack prepare yarn@stable --activate
yarn plugin import workspace-tools
- run: yarn workspace ${{ matrix.workspace.name }} run format
build:
runs-on: ubuntu-latest
needs: setup
strategy:
fail-fast: false
matrix:
workspace: ${{ fromJson(needs.setup.outputs.workspaces) }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Setup yarn
id: setup-yarn
run: |
corepack enable
corepack prepare yarn@stable --activate
yarn plugin import workspace-tools
- run: yarn workspace ${{ matrix.workspace.name }} run build
test:
runs-on: ubuntu-latest
needs: setup
strategy:
fail-fast: false
matrix:
workspace: ${{ fromJson(needs.setup.outputs.workspaces) }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Setup yarn
id: setup-yarn
run: |
corepack enable
corepack prepare yarn@stable --activate
yarn plugin import workspace-tools
- run: yarn workspace ${{ matrix.workspace.name }} run test