Skip to content

Feat/monorepo cleanup #1075

Feat/monorepo cleanup

Feat/monorepo cleanup #1075

Workflow file for this run

name: Test
on:
pull_request:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
check:
runs-on: ubuntu-latest
outputs:
status: ${{ steps.early.outputs.conclusion }} # Use the output from the step
steps:
- id: early
name: Check commit message
run: |
if [[ $(git log -1 --pretty=%B) == *"[skip tests]"* ]]; then
echo ::set-output name=conclusion::skip_tests
exit 0 # Exit with success code
fi
echo ::set-output name=conclusion::success # Default to "success"
test:
name: Test
timeout-minutes: 20
runs-on: ubuntu-latest
needs: check
if: ${{ github.head_ref != 'changeset-release/main' || needs.check.outputs.status == 'skip_tests' }}
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm run test