Skip to content

Repo sync (#460)

Repo sync (#460) #914

Workflow file for this run

name: 'Test & Lint'
on:
workflow_dispatch:
inputs:
sha:
description: 'SHA to rest tests and linting on'
required: true
type: string
pull_request:
push:
branches: ['main', 'develop']
jobs:
test:
name: 'Run Tests 🧪'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
ref: ${{ github.event.after || inputs.sha }}
- name: Setup Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
cache: 'npm'
node-version-file: 'package.json'
- run: npm i
- run: npm run test
lint:
name: 'Lint'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
ref: ${{ github.event.after || inputs.sha }}
- name: Setup Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
cache: 'npm'
node-version-file: 'package.json'
- name: Install Dependencies
run: npm i
- name: Run lint check
run: npm run lint