Skip to content

Commit 52f056f

Browse files
committed
Add CI with GitHub Actions
1 parent 5db5bfc commit 52f056f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/main.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: End-to-end tests
2+
on: [pull_request]
3+
jobs:
4+
cypress-run:
5+
runs-on: ubuntu-16.04
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v1
9+
- name: Use Node.js 12.x
10+
uses: actions/setup-node@v1
11+
with:
12+
node-version: 12.x
13+
- name: Cypress run
14+
uses: cypress-io/github-action@v1
15+
env:
16+
CYPRESS_baseUrl: "https://deploy-preview-${{ github.event.number }}--nuxt-netlify-functions-example.netlify.com"
17+
with:
18+
record: false
19+
wait-on: "https://deploy-preview-${{ github.event.number }}--nuxt-netlify-functions-example.netlify.com"
20+
wait-on-timeout: 90

0 commit comments

Comments
 (0)