Skip to content

Feat/clean up daily movie job #35

Feat/clean up daily movie job

Feat/clean up daily movie job #35

Workflow file for this run

name: Sanity check
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ubuntu-latest
env:
MASTODON_BASE_URL: ${{ vars.MASTODON_BASE_URL }}
MOVIEDB_API_URL: ${{ vars.MOVIEDB_API_URL }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- name: Install dependencies
run: npm ci
- name: Test with coverage
run: npm run coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'npm'
cache-dependency-path: 'package-lock.json'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build