Skip to content

chore(all-contributors): add gidjin as a contributor for maintenance #2262

chore(all-contributors): add gidjin as a contributor for maintenance

chore(all-contributors): add gidjin as a contributor for maintenance #2262

Workflow file for this run

name: Build and Test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['16', '18']
name: Node ${{ matrix.node }} tests
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Run Jest tests with coverage
run: yarn test:coverage -w 1
- name: Run node server side tests
run: yarn test:serverside
run-checks:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: 'yarn'
# The yarn cache is not node_modules
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Lint code
run: yarn lint
- name: Happo
run: yarn happo-ci
env:
HAPPO_API_KEY: ${{ secrets.HAPPO_API_KEY }}
HAPPO_API_SECRET: ${{ secrets.HAPPO_API_SECRET }}
- name: Run Danger JS
run: yarn danger ci --failOnErrors
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}