Skip to content

Commit

Permalink
refactor: update deps to use v4 and node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
bissolli committed Feb 23, 2024
1 parent d8cc100 commit d3138eb
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test-with-name.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
init:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: First step
run: echo "Init is ready"
- uses: bissolli/gh-action-persist-workspace@v1
- uses: bissolli/gh-action-persist-workspace@v2
with:
action: persist
artifactName: my-art
Expand All @@ -20,8 +20,8 @@ jobs:
needs: [init]
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- uses: bissolli/gh-action-persist-workspace@v1
- uses: actions/setup-node@v4
- uses: bissolli/gh-action-persist-workspace@v2
with:
action: retrieve
artifactName: my-art
Expand All @@ -32,8 +32,8 @@ jobs:
needs: [init]
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- uses: bissolli/gh-action-persist-workspace@v1
- uses: actions/setup-node@v4
- uses: bissolli/gh-action-persist-workspace@v2
with:
action: retrieve
artifactName: my-art
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ jobs:
init:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: First step
run: echo "Init is ready"
- uses: bissolli/gh-action-persist-workspace@v1
- uses: bissolli/gh-action-persist-workspace@v2
with:
action: persist

step-a:
needs: [init]
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- uses: bissolli/gh-action-persist-workspace@v1
- uses: actions/setup-node@v4
- uses: bissolli/gh-action-persist-workspace@v2
with:
action: retrieve
- name: Step A
Expand All @@ -30,8 +30,8 @@ jobs:
needs: [init]
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- uses: bissolli/gh-action-persist-workspace@v1
- uses: actions/setup-node@v4
- uses: bissolli/gh-action-persist-workspace@v2
with:
action: retrieve
- name: Step B
Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
init:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install dependencies
run: npm install
- uses: bissolli/gh-action-persist-workspace@v1
- uses: bissolli/gh-action-persist-workspace@v2
with:
action: persist
```
Expand All @@ -40,19 +40,19 @@ jobs:
init:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install dependencies
run: npm install
- uses: bissolli/gh-action-persist-workspace@v1
- uses: bissolli/gh-action-persist-workspace@v2
with:
action: persist

build:
needs: [init]
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
- uses: chatfood/gh-action-persist-workspace@master
with:
action: retrieve
Expand All @@ -73,20 +73,20 @@ jobs:
init:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: Install dependencies
run: npm install
- uses: bissolli/gh-action-persist-workspace@v1
- uses: bissolli/gh-action-persist-workspace@v2
with:
action: persist

test:
needs: [init]
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- uses: bissolli/gh-action-persist-workspace@v1
- uses: actions/setup-node@v4
- uses: bissolli/gh-action-persist-workspace@v2
with:
action: retrieve
- name: Run unit tests
Expand All @@ -96,8 +96,8 @@ jobs:
needs: [init]
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- uses: bissolli/gh-action-persist-workspace@v1
- uses: actions/setup-node@v4
- uses: bissolli/gh-action-persist-workspace@v2
with:
action: retrieve
- name: Build the project
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ runs:
run: tar -cf workspace.tar --exclude=workspace.tar .
- name: Upload the workspace artifact
if: ${{ inputs.action == 'persist' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifactName || 'persisted-artifact' }}
path: workspace.tar
if-no-files-found: error
- name: Retrieve workspace
if: ${{ inputs.action == 'retrieve' }}
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifactName || 'persisted-artifact' }}
- name: Extract workspace
Expand Down

0 comments on commit d3138eb

Please sign in to comment.