Skip to content

Updating CONTRIBUTING.md with new publishing procedure (#1475) #1931

Updating CONTRIBUTING.md with new publishing procedure (#1475)

Updating CONTRIBUTING.md with new publishing procedure (#1475) #1931

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- develop
- trunk
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
preflight:
name: ${{ matrix.config.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
config:
- { name: Lint, tool: lint }
- { name: Flow, tool: flow }
- { name: type checker, tool: check-types }
steps:
- name: Check out the source code
uses: actions/checkout@v3
- name: Set up Node.js environment
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: npm
cache-dependency-path: npm-shrinkwrap.json
- name: Install dependencies
run: npm ci
- name: Run ${{ matrix.config.tool }}
run: npm run '${{ matrix.config.tool }}'
test:
name: Run tests
runs-on: ubuntu-latest
needs: preflight
strategy:
fail-fast: true
matrix:
node-version:
- 'lts/*'
- 'lts/-1'
- current
steps:
- name: Check out the source code
uses: actions/checkout@v3
- name: Set up Node.js environment
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: npm-shrinkwrap.json
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run jest