-
Notifications
You must be signed in to change notification settings - Fork 9
55 lines (44 loc) · 1.2 KB
/
devcon-archive.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Devcon Archive CI
on:
push:
paths:
- "lib/**"
- "devcon-archive/**"
- ".github/workflows/devcon-archive.yml"
pull_request:
paths:
- "lib/**"
- "devcon-archive/**"
- ".github/workflows/devcon-archive.yml"
jobs:
build:
working_directory: devcon-archive
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "12.x"
- name: Create env file
run: |
touch .env
echo DB_CONNECTION_STRING='${{ secrets.DB_CONNECTION_STRING }}' >> .env
echo ELASTIC_ENDPOINT='${{ secrets.ELASTIC_ENDPOINT }}' >> .env
- name: Install dependencies
run: yarn
- name: Run Prettier // Format
run: yarn format
- name: Run Eslint // Lint
run: yarn lint
- name: Run Build
run: yarn build
- name: Serve build to test against
run: yarn serve &
- uses: microsoft/playwright-github-action@v1
- name: Run your tests
run: npm test
- uses: actions/upload-artifact@v2
with:
name: screenshots
path: screenshots