Skip to content

Commit

Permalink
Merge pull request #526 from creativecommons/gh-actions
Browse files Browse the repository at this point in the history
Update GitHub Actions
  • Loading branch information
TimidRobot authored Apr 12, 2024
2 parents c37acc1 + 1e231b5 commit 07ea895
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 67 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/lint_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Lint and Test

on:
push:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
# https://github.com/actions/checkout
- name: Checkout
uses: actions/checkout@v4

# https://github.com/actions/setup-node
- name: Use Node.js 14
uses: actions/setup-node@v4
with:
node-version: '14'

- name: Clean install NPM packages from package-lock.json
run: npm ci

- name: Lint
run: npm run lint

- name: Test
run: npm run test:unit
env:
CI: true

# https://github.com/cypress-io/github-action
- name: Cypress run
uses: cypress-io/github-action@v6
with:
start: npm run serve
wait-on: 'http://localhost:8080'
36 changes: 0 additions & 36 deletions .github/workflows/pull_request.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/push.yml

This file was deleted.

0 comments on commit 07ea895

Please sign in to comment.