Skip to content

Commit

Permalink
fix: install deps in github workflow
Browse files Browse the repository at this point in the history
rename workflow to unit-test
  • Loading branch information
PhOder committed May 12, 2024
1 parent 23fa734 commit be7b473
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/hello.yml → .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v4.0.2
uses: actions/setup-node@v4
with:
# Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0.
node-version: 20
Expand All @@ -35,17 +35,7 @@ jobs:
# Used to specify the path to a dependency file: package-lock.json, yarn.lock, etc. Supports wildcards or a list of file names for caching multiple dependencies.
# cache-dependency-path: # optional

- name: Install deps
run: npm ci
- name: Run Tests
run: npm run test:ci

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
node -v
npm -v

0 comments on commit be7b473

Please sign in to comment.