Fix nightly/release + integration workflow (#8450)
* Revert "Add e2e tests with playwright (#8123)" This reverts commit0df815729b. * Revert "Revert "Add e2e tests with playwright (#8123)"" This reverts commit2299306954. * fix nightly/release * fix nightly/release * fix nightly/release --------- Co-authored-by: andig <cpuidle@gmx.de>
This commit is contained in:
parent
57232cbbfd
commit
9ef3f5f307
10 changed files with 227 additions and 13 deletions
82
.github/workflows/default.yml
vendored
82
.github/workflows/default.yml
vendored
|
|
@ -44,15 +44,38 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# - uses: actions/setup-go@v4
|
||||
- uses: erezrokah/setup-go@feat/add_cache_prefix
|
||||
with:
|
||||
go-version: ^1.20
|
||||
cache-key-prefix: build-cache-
|
||||
id: go
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "18"
|
||||
cache: "npm"
|
||||
|
||||
- name: Install UI
|
||||
run: make install-ui
|
||||
|
||||
- name: Build UI
|
||||
run: make ui
|
||||
|
||||
- name: Build
|
||||
run: mkdir dist && touch dist/empty && make build
|
||||
run: make build
|
||||
|
||||
- name: Cache dist
|
||||
uses: actions/cache/save@v3
|
||||
id: cache-dist
|
||||
with:
|
||||
path: dist
|
||||
key: ${{ runner.os }}-${{ github.sha }}-dist
|
||||
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: evcc-binary
|
||||
path: ./evcc
|
||||
|
||||
test:
|
||||
name: Test
|
||||
|
|
@ -92,7 +115,7 @@ jobs:
|
|||
version: latest
|
||||
args: --timeout 5m
|
||||
|
||||
build-ui:
|
||||
ui:
|
||||
name: UI
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
|
@ -104,7 +127,7 @@ jobs:
|
|||
node-version: "18"
|
||||
cache: "npm"
|
||||
|
||||
- name: Install tools
|
||||
- name: Install
|
||||
run: make install-ui
|
||||
|
||||
- name: Lint
|
||||
|
|
@ -113,12 +136,49 @@ jobs:
|
|||
- name: Test
|
||||
run: make test-ui
|
||||
|
||||
- name: Build
|
||||
run: make ui
|
||||
- name: Porcelain
|
||||
run: |
|
||||
test -z "$(git status --porcelain)" || (git status; git diff; false)
|
||||
|
||||
- name: Cache dist
|
||||
uses: actions/cache/save@v3
|
||||
id: cache-dist
|
||||
integration:
|
||||
name: Integration
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event_name != 'workflow_call' }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
path: dist
|
||||
key: ${{ runner.os }}-${{ github.sha }}-dist
|
||||
node-version: "18"
|
||||
cache: "npm"
|
||||
|
||||
- name: Install npm
|
||||
run: npm ci
|
||||
|
||||
- run: npx playwright install --with-deps chromium
|
||||
|
||||
- name: Wait for Build
|
||||
uses: lewagon/wait-on-check-action@v1.3.1
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||
check-name: Build
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
wait-interval: 10
|
||||
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: evcc-binary
|
||||
|
||||
- name: Make executable
|
||||
run: chmod +x evcc
|
||||
|
||||
- name: Run tests
|
||||
run: npx playwright test
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: always()
|
||||
with:
|
||||
name: playwright-report
|
||||
path: playwright-report/
|
||||
retention-days: 30
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue