Skip to content

Commit

Permalink
PAPI-408 bump minimum node version (#180)
Browse files Browse the repository at this point in the history
* sort deps so it's easier to see what's changed

* Bump minimum node version to 18, which is the oldest version still receiving security updates.

* bump client version

* Resolve a critical vulnerability

Bump crypto-js to the latest version

* Allow CI to run on PRs.

Also rename the jobs so they are shorter.
  • Loading branch information
martin-nef authored Apr 16, 2024
1 parent c702e9d commit 6d833ff
Show file tree
Hide file tree
Showing 4 changed files with 3,215 additions and 1,773 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
name: gocardless/gocardless-nodejs/deploy_library
on:
push:
branches:
- master
name: test & publish
on: push

jobs:
test_library:
test:
runs-on: ubuntu-latest
container:
image: node:lts
steps:
- uses: actions/[email protected]
- run: npm install --save-dev jest typescript ts-jest @types/jest
- run: npm test
transpile_library:

transpile:
runs-on: ubuntu-latest
container:
image: node:lts
needs:
- test_library
- test
steps:
- uses: actions/[email protected]
- run: npm install
Expand All @@ -26,13 +25,14 @@ jobs:
- uses: actions/[email protected]
with:
path: "dist"

publish_to_npm:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
container:
image: node:lts
needs:
- transpile_library
- transpile
env:
DIST_FOLDER: "/dist/artifact"
steps:
Expand Down
Loading

0 comments on commit 6d833ff

Please sign in to comment.