-
Notifications
You must be signed in to change notification settings - Fork 13
29 lines (27 loc) · 897 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: ci
on: [push, pull_request]
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Setup node env 🏗
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache-dependency-path: |
src/package-lock.json
functions/package-lock.json
- name: Dependencies
run: npm --prefix src install && npm --prefix functions install && cp -r src/nuxt.config.js src/config src/tailwind.config.js functions/
- name: Lint Test
run: npm --prefix src run lint && npm --prefix functions run lint
- name: Build
run: npm --prefix src run build
- name: Server Test
run: npm --prefix src start &
- name: Curl Test
run: curl --retry 10 --retry-delay 5 -v http://localhost:3000/