-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 972 Bytes
/
automation.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
name: Automation Checks
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
id-token: write
contents: write
pages: write
jobs:
build-and-test:
name: Automation for agencia-clickone
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout branch
uses: actions/checkout@v2
with:
path: automation
- name: Run automation tests
run: |
cd automation
ls -la
./run_tests.sh -S ${{ env.INPUT_SRC }}
env:
INPUT_SRC: automation
- name: Upload test results
uses: actions/upload-artifact@v4
with:
name: github-pages
path: automation/results/
deploy:
needs: build-and-test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4