Skip to content

test(landing): added tests for landing page #60

test(landing): added tests for landing page

test(landing): added tests for landing page #60

Workflow file for this run

name: next js build workflow
on: [push]
jobs:
build-app:
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_G_CODE: ${{ secrets.NEXT_PUBLIC_G_CODE }}
NEXT_PUBLIC_SUPABASE_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_KEY }}
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}
NEXT_PUBLIC_RESUME: ${{ secrets.NEXT_PUBLIC_RESUME }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- name: Install node modules
run: yarn
- name: Build the project
run: yarn build
- name: Deploy to netlify
uses: netlify/actions/cli@master
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
with:
args: deploy --dir=build --prod
secrets: '["NETLIFY_AUTH_TOKEN", "NETLIFY_SITE_ID"]'
- name: Finish
run: echo "run completed"
run-eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- name: Install node modules
run: yarn
- name: Run eslist
run: yarn lint
- name: Finish
run: echo "Eslint run completed"