Skip to content

Commit

Permalink
Use local action for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xSAVIKx committed Jan 2, 2024
1 parent 27c6945 commit f048bc6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/dist-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,19 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Install ncc
run: npm i -g @vercel/ncc
- name: Rebuild the dist/ directory
run: npm run build
- name: Store Dist
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "dist"
path: "dist/"
Expand All @@ -36,7 +37,8 @@ jobs:
outputs:
has-dist: ${{ steps.check_dist.outputs.exists }}
steps:
- uses: xSAVIKx/artifact-exists-action@v0
- uses: actions/checkout@v4
- uses: "./"
id: check_dist
with:
name: "dist"
4 changes: 2 additions & 2 deletions .github/workflows/test-workflow-with-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ jobs:
run-action:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Store Workflow
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "test-worklow"
path: ".github/workflows/test-workflow-with-action.yaml"
Expand Down

0 comments on commit f048bc6

Please sign in to comment.