Merge pull request #10 from bitfreee/feat/optimize-image #19
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: CI | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
# fake env variables to bypass env check | |
env: | |
NEXT_PUBLIC_APP_URL: "https://fake.com" | |
NEXT_PUBLIC_TMDB_TOKEN: "fake-token" | |
NEXT_PUBLIC_SITE_NAME: "fake-name" | |
NEXT_PUBLIC_IMAGE_DOMAIN: "fake-domain" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.17.1 | |
cache: "npm" | |
- name: Install Dependencies | |
run: npm ci | |
- name: Typecheck | |
run: npm run typecheck | |
- name: Lint | |
run: npm run lint | |
- name: Print Environment Variable | |
run: echo $MY_ENV_VAR |