Files
webstudio/.github/workflows/main.yml
T
2022-05-17 22:02:37 +02:00

29 lines
682 B
YAML

name: Main workflow
on: [push]
jobs:
checks:
env:
DATABASE_URL: mongo://
NODE_ENV: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ["14.x", "16.x"]
os: [ubuntu-latest]
steps:
- name: Checkout repo
uses: actions/checkout@v2
# - name: Install deps and build (with cache)
# uses: bahmutov/npm-install@v1
- run: yarn install
- name: Next.js cache
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-${{ runner.node }}-${{ hashFiles('**/yarn.lock') }}-nextjs
- run: yarn checks
- run: yarn build