(ci) add simple GitLab CI configuration for running jest tests

This commit is contained in:
Valentyne Stigloher 2023-12-03 13:21:26 +01:00
parent c00e6e772b
commit 07bb6fa20b
2 changed files with 22 additions and 0 deletions

21
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,21 @@
image: node:latest
cache:
paths:
- .yarn
- node_modules/
before_script:
- sed -i "s/git+ssh:\/\/git@gitlab.com:Avris\/FontAwesomePro.git/git+https:\/\/git@gitlab.com\/Avris\/FakeFontAwesomePro.git/" package.json
- make switch LANG=en
- yarn install --immutable --immutable-cache --check-cache --cache-folder .yarn
unit-tests:
stage: test
script:
- yarn add -D jest-junit
- yarn test --ci --reporters=default --reporters=jest-junit
artifacts:
when: always
reports:
junit: junit.xml

View File

@ -3,5 +3,6 @@ export default {
// define the config global here, but fill its properties later in the individual tests
config: {},
},
testPathIgnorePatterns: ['.yarn', 'node_modules'],
transform: {},
};