Skip to content

Commit 071b4c7

Browse files
authored
Add GH actions (#16)
1 parent 461d4f5 commit 071b4c7

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

github/workflows/selenium_test.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: selenium_test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
checks: write
11+
pull-requests: write
12+
contents: read
13+
14+
jobs:
15+
selenium_test:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v3
20+
21+
- name: Set up JDK 17
22+
uses: actions/setup-java@v3
23+
with:
24+
distribution: temurin
25+
java-version: '17'
26+
27+
- name: Cache Maven repository
28+
uses: actions/cache@v3
29+
with:
30+
path: ~/.m2
31+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
32+
restore-keys: ${{ runner.os }}-maven-
33+
34+
- name: Install Chrome
35+
uses: browser-actions/setup-chrome@v2
36+
37+
- name: Run Maven tests
38+
run: mvn clean test
39+
40+
- name: Generate Allure Report
41+
run: mvn allure:report
42+
43+
- name: Upload Allure Report Artifact
44+
uses: actions/upload-artifact@v3
45+
with:
46+
name: allure-report
47+
path: target/site/allure-maven-plugin
48+
49+
- name: Deploy Allure Report to GitHub Pages
50+
uses: peaceiris/actions-gh-pages@v3
51+
with:
52+
github_token: ${{ secrets.EPOLIF_TOKEN }}
53+
publish_dir: target/site/allure-maven-plugin

0 commit comments

Comments
 (0)