generated from custom-cards/boilerplate-card
-
-
Notifications
You must be signed in to change notification settings - Fork 33
37 lines (35 loc) · 1.06 KB
/
non-main.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
name: 'Build non-main'
on:
push:
branches-ignore:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: |
cd /home/runner/work/lovelace-hourly-weather/lovelace-hourly-weather
npm ci
npm run build
- name: Save artifact
uses: actions/upload-artifact@v3
with:
name: hourly-weather.js
retention-days: 5
path: /home/runner/work/lovelace-hourly-weather/lovelace-hourly-weather/dist/hourly-weather.js
- name: Run tests
uses: cypress-io/github-action@v6
with:
record: ${{ github.actor != 'dependabot[bot]' && github.event_name == 'pull_request' }}
start: npm run test:server
wait-on: 'http://localhost:8000'
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TZ: Etc/UTC # https://github.com/cypress-io/cypress/issues/1043