initial conversion to nextjs #29
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: 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 globally | |
run: npm install -g [email protected] | |
- name: Install prisma client globally | |
run: npm install -g @prisma/[email protected] | |
- name: Execute Script | |
run: ts-node ./scripts/upsert/courses.ts ${{ github.event.inputs.term }} ${{ github.event.inputs.registrationDate }} ${{ github.event.inputs.dropDate }} |