This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
website/.github/workflows/test.yml

49 lines
981 B
YAML
Raw Normal View History

2021-10-24 05:48:06 +02:00
name: 'Test'
on:
push:
branches: [develop]
2021-10-24 05:48:06 +02:00
pull_request:
branches: [master, develop]
jobs:
test-unit:
runs-on: 'ubuntu-latest'
steps:
2023-09-18 22:21:59 +02:00
- uses: 'actions/checkout@v4.0.0'
2021-10-24 05:48:06 +02:00
2023-05-13 20:28:24 +02:00
- name: 'Setup Node.js'
2023-08-24 22:24:29 +02:00
uses: 'actions/setup-node@v3.8.1'
2021-10-24 05:48:06 +02:00
with:
node-version: '20.x'
2021-10-24 05:48:06 +02:00
cache: 'npm'
2023-05-13 20:28:24 +02:00
- name: 'Install dependencies'
run: 'npm clean-install'
2021-10-24 05:48:06 +02:00
- name: 'Unit Test'
run: 'npm run test:unit'
2023-05-13 20:28:24 +02:00
test-e2e:
2021-10-24 05:48:06 +02:00
runs-on: 'ubuntu-latest'
steps:
2023-09-18 22:21:59 +02:00
- uses: 'actions/checkout@v4.0.0'
2021-10-24 05:48:06 +02:00
2023-05-13 20:28:24 +02:00
- name: 'Setup Node.js'
2023-08-24 22:24:29 +02:00
uses: 'actions/setup-node@v3.8.1'
2021-10-24 05:48:06 +02:00
with:
node-version: '20.x'
2021-10-24 05:48:06 +02:00
cache: 'npm'
2023-05-13 20:28:24 +02:00
- name: 'Install dependencies'
run: 'npm clean-install'
2021-10-24 05:48:06 +02:00
- name: 'Build'
run: 'npm run build'
- name: 'html-w3c-validator'
run: 'npm run test:html-w3c-validator'
2021-10-24 05:48:06 +02:00
- name: 'End To End (e2e) Test'
run: 'npm run test:e2e'