2
1
mirror of https://github.com/Thream/api.git synced 2024-07-21 03:38:31 +02:00
api/.github/workflows/test.yml

31 lines
544 B
YAML
Raw Normal View History

2021-10-24 04:06:16 +02:00
name: 'Test'
on:
push:
branches: [develop]
2021-10-24 04:06:16 +02:00
pull_request:
branches: [master, develop]
jobs:
test:
2022-08-23 23:57:52 +02:00
runs-on: 'ubuntu-latest'
2021-10-24 04:06:16 +02:00
steps:
2023-07-02 18:45:54 +02:00
- uses: 'actions/checkout@v3.5.3'
2021-10-24 04:06:16 +02:00
2023-05-13 20:09:02 +02:00
- name: 'Setup Node.js'
2023-01-11 18:02:38 +01:00
uses: 'actions/setup-node@v3.6.0'
2021-10-24 04:06:16 +02:00
with:
2023-07-22 16:26:27 +02:00
node-version: '20.x'
2021-10-24 04:18:18 +02:00
cache: 'npm'
2021-10-24 04:06:16 +02:00
2023-05-13 20:09:02 +02:00
- name: 'Install dependencies'
run: 'npm clean-install'
2021-10-24 04:06:16 +02:00
- name: 'Build'
run: 'npm run build'
- run: 'cp .env.example .env'
2021-10-24 04:06:16 +02:00
- name: 'Test'
run: 'npm run test'