Skip to content

Commit

Permalink
switch to babel for test transpilation, updated e2e pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
freshollie committed Nov 26, 2020
1 parent d5101e5 commit b44fec7
Show file tree
Hide file tree
Showing 10 changed files with 1,091 additions and 42 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ jobs:
node-version: "10.x"
- name: Lint
run: |
yarn --frozen-lockfile
yarn --frozen-lockfile --ignore-scripts
yarn lint
env:
CI: true

build:
runs-on: ubuntu-latest

Expand All @@ -30,7 +31,7 @@ jobs:
- name: Build
run: |
yarn --frozen-lockfile --ignore-scripts
yarn build
yarn test:types
env:
CI: true

Expand All @@ -54,8 +55,12 @@ jobs:
yarn test --coverage
env:
CI: true
- name: Publish Coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

e2e-preset:
e2e:
runs-on: ubuntu-latest
needs: build

Expand All @@ -72,7 +77,12 @@ jobs:
- name: Test example
run: |
yarn
cd example
echo 'Testing simple preset'
cd e2e/preset
yarn
yarn test
echo 'Testing simple preset in monorepo'
cd ../monorepo
yarn
yarn test
env:
Expand All @@ -81,7 +91,7 @@ jobs:
publish:
runs-on: ubuntu-latest

needs: [test, test-example]
needs: [lint, test, e2e]

if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '.')
steps:
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
presets: [
["@babel/preset-env", { targets: { node: "current" } }],
"@babel/preset-typescript",
],
};
2 changes: 1 addition & 1 deletion e2e/monorepo/packages/keystore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"test": "jest"
},
"devDependencies": {
"jest-dynalite": "file:../../../"
"jest-dynalite": "file:../../../../"
},
"dependencies": {
"aws-sdk": "^2.771.0"
Expand Down
Loading

0 comments on commit b44fec7

Please sign in to comment.