Skip to content

Commit

Permalink
update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
erossignon committed Sep 3, 2023
1 parent cf5bfd3 commit f69613a
Show file tree
Hide file tree
Showing 7 changed files with 292 additions and 1,242 deletions.
39 changes: 16 additions & 23 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ jobs:
- name: Cache dependencies
uses: actions/cache/save@v3
with:
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
path: |
node_modules
key: ${{ runner.os }}-node-modules-${{ github.sha }}
path: node_modules

build:
needs: prepare
Expand All @@ -51,7 +50,7 @@ jobs:
- name: Cache dependencies
uses: actions/cache/restore@v3
with:
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-modules-${{ github.sha }}
path: node_modules
- run: npm install
- run: npm run build
Expand All @@ -61,9 +60,8 @@ jobs:
enableCrossOsArchive: true
key: dist-${{ github.sha }}
path: |
./packages/node-opcua-crypto/dist
./packages/node-opcua-crypto-test/dist-cjs
./packages/node-opcua-crypto-test/dist-esm
./packages/node-opcua-crypto/dist*
./packages/node-opcua-crypto-test/dist*
test-new:
needs: build
Expand All @@ -85,7 +83,7 @@ jobs:
- name: Restore dependencies
uses: actions/cache/restore@v3
with:
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-modules-${{ github.sha }}
path: node_modules

- name: Restore build artifacts
Expand All @@ -94,9 +92,8 @@ jobs:
enableCrossOsArchive: true
key: dist-${{ github.sha }}
path: |
./packages/node-opcua-crypto/dist
./packages/node-opcua-crypto-test/dist-cjs
./packages/node-opcua-crypto-test/dist-esm
./packages/node-opcua-crypto/dist*
./packages/node-opcua-crypto-test/dist*
- name: Run test
run: npm test
Expand All @@ -123,7 +120,7 @@ jobs:
- name: Restore dependencies
uses: actions/cache/restore@v3
with:
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-modules-${{ github.sha }}
path: node_modules

- name: Restore build artifacts
Expand All @@ -132,10 +129,9 @@ jobs:
enableCrossOsArchive: true
key: dist-${{ github.sha }}
path: |
./packages/node-opcua-crypto/dist
./packages/node-opcua-crypto-test/dist-cjs
./packages/node-opcua-crypto-test/dist-esm
./packages/node-opcua-crypto/dist*
./packages/node-opcua-crypto-test/dist*
- name: Run test
run: npm test

Expand Down Expand Up @@ -164,13 +160,11 @@ jobs:
- name: nodejs
run: node --version

- name: nodejs
run: node --version

- name: Restore dependencies
uses: actions/cache/restore@v3
with:
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-modules-${{ github.sha }}
path: node_modules

- name: Restore build artifacts
Expand All @@ -179,9 +173,8 @@ jobs:
enableCrossOsArchive: true
key: dist-${{ github.sha }}
path: |
./packages/node-opcua-crypto/dist
./packages/node-opcua-crypto-test/dist-cjs
./packages/node-opcua-crypto-test/dist-esm
./packages/node-opcua-crypto/dist*
./packages/node-opcua-crypto-test/dist*
- name: Run test
run: npm test
Loading

0 comments on commit f69613a

Please sign in to comment.