-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.27 KB
/
Copy pathtest.yml
File metadata and controls
48 lines (44 loc) · 1.27 KB
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
name: Project-Tests
on: [pull_request, workflow_dispatch]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
jobs:
test:
name: Testing with coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: browser-actions/setup-chrome@v1
- name: install dependencies
run: npm ci
- name: run tests
run: npm run test-cov-headless
- name: lint-test project
run: npm run lint
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.5.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
run-format:
name: Format Code
runs-on: ubuntu-latest
if: ${{ contains(github.head_ref, 'renovate/prettier') }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: install dependencies
run: npm ci
- name: format project
run: npm run format
- name: commit format changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name 'OpenFoxes Renovate Helper'
git config --global user.email 'mail@bono-fox.de'
git commit -am "🎨 #42: Reformatted code"
git push