Skip to content

Commit 07ea895

Browse files
authored
Merge pull request #526 from creativecommons/gh-actions
Update GitHub Actions
2 parents c37acc1 + 1e231b5 commit 07ea895

File tree

3 files changed

+38
-67
lines changed

3 files changed

+38
-67
lines changed

.github/workflows/lint_and_test.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Lint and Test
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
# https://github.com/actions/checkout
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
# https://github.com/actions/setup-node
17+
- name: Use Node.js 14
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '14'
21+
22+
- name: Clean install NPM packages from package-lock.json
23+
run: npm ci
24+
25+
- name: Lint
26+
run: npm run lint
27+
28+
- name: Test
29+
run: npm run test:unit
30+
env:
31+
CI: true
32+
33+
# https://github.com/cypress-io/github-action
34+
- name: Cypress run
35+
uses: cypress-io/github-action@v6
36+
with:
37+
start: npm run serve
38+
wait-on: 'http://localhost:8080'

.github/workflows/pull_request.yml

-36
This file was deleted.

.github/workflows/push.yml

-31
This file was deleted.

0 commit comments

Comments
 (0)