Actualiser .github/workflows/ci.yml
This commit is contained in:
29
.github/workflows/ci.yml
vendored
29
.github/workflows/ci.yml
vendored
@@ -1,14 +1,25 @@
|
|||||||
name: test-ci-simple
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- develop
|
||||||
|
- test-ci
|
||||||
|
pull_request:
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
build:
|
||||||
runs-on: self-hosted
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Just echo
|
- uses: actions/checkout@v4
|
||||||
run: |
|
- uses: actions/setup-node@v4
|
||||||
echo "Runner OK"
|
with:
|
||||||
uname -a
|
ssh-key: ${{ secrets.RUNNER_SSH_KEY }}
|
||||||
|
node-version: 20
|
||||||
|
cache: 'npm'
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: Run unit tests
|
||||||
|
run: npm test -- --runInBand
|
||||||
|
- name: Run e2e tests
|
||||||
|
run: npm run test:e2e -- --runInBand
|
||||||
Reference in New Issue
Block a user