Skip to content

initial conversion to nextjs #17

initial conversion to nextjs

initial conversion to nextjs #17

name: Script - npm run db:populate
on:
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 18.19.0
- name: Cache npm dependencies
uses: actions/cache@v2
with:
key: npm-${{ hashFiles('package-lock.json') }}
path: ~/.npm
restore-keys: |
npm-
- name: Install dependencies
run: npm ci --ignore-scripts --no-audit --no-progress
- name: Lint
run: npm run lint
npm-run:
name: Execute Script
needs: [lint]
runs-on: ubuntu-latest
environment: ${{ github.event.inputs.environment }}
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 18.19.0
- name: Cache npm dependencies
uses: actions/cache@v2
with:
key: npm-${{ hashFiles('package-lock.json') }}
path: ~/.npm
restore-keys: |
npm-
- name: Install dependencies
run: npm ci --ignore-scripts --no-audit --no-progress
# TODO: now its complaining about the prisma client, find a way to install all of these machine dependencies better
- name: Install ts-node and prisma client globally
run: npm install -g ts-node@10.2.1
run: npm install -g @prisma/client@5.4.2

Check failure on line 48 in .github/workflows/upsert-courses.yaml

View workflow run for this annotation

GitHub Actions / Script - npm run db:populate

Invalid workflow file

The workflow is not valid. .github/workflows/upsert-courses.yaml (Line: 48, Col: 9): 'run' is already defined
- name: Execute Script
run: ts-node ./scripts/upsert/courses.ts ${{ github.event.inputs.term }} ${{ github.event.inputs.registrationDate }} ${{ github.event.inputs.dropDate }}