mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-19 04:27:05 -04:00
(ci) add simple GitLab CI configuration for running jest tests
This commit is contained in:
parent
c00e6e772b
commit
07bb6fa20b
21
.gitlab-ci.yml
Normal file
21
.gitlab-ci.yml
Normal 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
|
@ -3,5 +3,6 @@ export default {
|
|||||||
// define the config global here, but fill its properties later in the individual tests
|
// define the config global here, but fill its properties later in the individual tests
|
||||||
config: {},
|
config: {},
|
||||||
},
|
},
|
||||||
|
testPathIgnorePatterns: ['.yarn', 'node_modules'],
|
||||||
transform: {},
|
transform: {},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user