mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 05:26:24 +09:00
29 lines
682 B
YAML
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
|