Skip to content

Commit

Permalink
update git hub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
erossignon committed Dec 14, 2024
1 parent 0cb5ff0 commit a7d4049
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.2.2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v4.1.0
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- name: Cache dependencies
uses: actions/cache/save@v4
uses: actions/cache@v4.1.1
with:
key: ${{ runner.os }}-node-modules-${{ github.sha }}
path: node_modules
Expand All @@ -43,19 +43,19 @@ jobs:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v4.2.2
- uses: actions/setup-node@v4.1.0
with:
node-version: ${{ matrix.node-version }}
- name: Cache dependencies
uses: actions/cache/restore@v4
uses: actions/cache@v4.1.1
with:
key: ${{ runner.os }}-node-modules-${{ github.sha }}
path: node_modules
- run: npm install
- run: npm run build
- name: Cache build artifacts
uses: actions/cache/save@v4
uses: actions/cache@v4.1.1
with:
enableCrossOsArchive: true
key: dist-${{ github.sha }}
Expand All @@ -73,21 +73,21 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.2.2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v4.1.0
with:
node-version: ${{ matrix.node-version }}

- name: Restore dependencies
uses: actions/cache/restore@v4
uses: actions/cache@v4.1.1
with:
key: ${{ runner.os }}-node-modules-${{ github.sha }}
path: node_modules

- name: Restore build artifacts
uses: actions/cache/restore@v4
uses: actions/cache@v4.1.1
with:
enableCrossOsArchive: true
key: dist-${{ github.sha }}
Expand All @@ -107,24 +107,24 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.2.2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
uses: actions/setup-node@v4.1.0
with:
node-version: ${{ matrix.node-version }}

- name: nodejs
run: node --version

- name: Restore dependencies
uses: actions/cache/restore@v4
uses: actions/cache@v4.1.1
with:
key: ${{ runner.os }}-node-modules-${{ github.sha }}
path: node_modules

- name: Restore build artifacts
uses: actions/cache/restore@v4
uses: actions/cache@v4.1.1
with:
enableCrossOsArchive: true
key: dist-${{ github.sha }}
Expand Down Expand Up @@ -152,10 +152,10 @@ jobs:
# runs-on: ${{ matrix.os }}
# steps:
# - name: checkout
# uses: actions/checkout@v4
# uses: actions/checkout@v4.2.2

# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v4
# uses: actions/setup-node@v4.1.0
# with:
# node-version: ${{ matrix.node-version }}

Expand All @@ -164,13 +164,13 @@ jobs:


# - name: Restore dependencies
# uses: actions/cache/restore@v4
# uses: actions/cache@v4.1.1
# with:
# key: ${{ runner.os }}-node-modules-${{ github.sha }}
# path: node_modules

# - name: Restore build artifacts
# uses: actions/cache/restore@v4
# uses: actions/cache@v4.1.1
# with:
# enableCrossOsArchive: true
# key: dist-${{ github.sha }}
Expand All @@ -179,4 +179,4 @@ jobs:
# ./packages/node-opcua-crypto-test/dist*

# - name: Run test
# run: npm test
# run: npm test

0 comments on commit a7d4049

Please sign in to comment.