chore(extension): test in CI (#749)

* chore(extension): test in CI

* On Windows

* Use working-directory

* Increase timeout

* Try waiting 2 seconds

* Or 5

* Keep other parts of CI

* Add more to gitattributes

* Expand

* No yaml

* Long
This commit is contained in:
Nathan Bierema 2021-06-20 01:58:59 +00:00 committed by GitHub
parent 9d7aa4b62f
commit 79e2d5298d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 2 deletions

5
.gitattributes vendored
View File

@ -6,3 +6,8 @@
*.css text eol=lf *.css text eol=lf
*.html text eol=lf *.html text eol=lf
*.md text eol=lf *.md text eol=lf
*.yml text eol=lf
*.graphql text eol=lf
.eslintrc text eol=lf
.prettierrc text eol=lf
.babelrc text eol=lf

View File

@ -8,7 +8,7 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: windows-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -17,3 +17,7 @@ jobs:
- run: yarn build:all - run: yarn build:all
- run: yarn lint:all - run: yarn lint:all
- run: yarn test:all - run: yarn test:all
- working-directory: ./extension
run: yarn install --immutable
- working-directory: ./extension
run: yarn test

View File

@ -1,3 +1,3 @@
module.exports = { module.exports = {
setupFiles: ['<rootDir>/test/setup.js'], setupFilesAfterEnv: ['<rootDir>/test/setup.js'],
}; };

View File

@ -4,3 +4,5 @@ import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-15.4'; import Adapter from 'enzyme-adapter-react-15.4';
Enzyme.configure({ adapter: new Adapter() }); Enzyme.configure({ adapter: new Adapter() });
jest.setTimeout(50000);