Video File <> Schedule Item matching algorithm in admin #4849
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Javascript Lint | |
on: pull_request | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
outputs: | |
services: ${{ steps.filter.outputs.changes }} | |
steps: | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
token: ${{ github.token }} | |
filters: | | |
frontend: | |
- "frontend/**" | |
association-frontend: | |
- "association-frontend/**" | |
lint: | |
runs-on: ubuntu-latest | |
needs: [changes] | |
if: ${{ needs.changes.outputs.services != '[]' && needs.changes.outputs.services != '' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
service: ${{ fromJSON(needs.changes.outputs.services) }} | |
defaults: | |
run: | |
working-directory: ./${{ matrix.service }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- uses: pnpm/action-setup@v2.2.2 | |
with: | |
version: 7.3.0 | |
- name: Cache dependencies | |
uses: actions/cache@v1 | |
id: cache | |
with: | |
path: ./node_modules | |
key: node_modules-${{ matrix.service }}-${{ hashFiles('pnpm-lock.yaml') }}-v4 | |
- name: Install dependencies | |
run: pnpm install | |
- name: Codegen | |
if: ${{ matrix.service == 'frontend' || matrix.service == 'association-frontend' }} | |
run: pnpm run codegen | |
- name: Lint | |
run: pnpm run lint | |
- name: TS Lint | |
run: pnpm run lint:ts | |
- name: Prettier | |
run: pnpm run lint:prettier |