-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (39 loc) · 1.19 KB
/
build-and-validate.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
name: Build and validate plugin
on:
pull_request:
push:
branches:
- test-build-and-validate-workflow
- main
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: abatilo/[email protected]
- uses: nanasess/setup-chromedriver@v1
- run: poetry install --no-interaction
- run: ./validate-strict.sh
id: tox
- if: always()
id: check-artifacts
run: |
ls -alh
if [[ -f "./webdriver-report/report.json" ]]
then
echo "::set-output name=upload-webdriver-report::true"
fi
if [[ -f "./htmlcov/index.html" ]]
then
echo "::set-output name=upload-coverage-report::true"
fi
- if: always() && steps.check-artifacts.outputs.upload-webdriver-report
uses: actions/upload-artifact@v2
with:
name: web test storyboards for for ${{ github.sha }}
path: ./webdriver-report
- if: always() && steps.check-artifacts.outputs.upload-coverage-report
uses: actions/upload-artifact@v2
with:
name: coverage report for ${{ github.sha }}
path: ./htmlcov