Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow to test if modified setup-node breaks #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 19 additions & 26 deletions .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
# name: 'Testing the issue'
name: 'Test the setup-node action'

# on:
# pull_request:
# paths-ignore:
# - '**.md'

# push:
# branches:
# - main
# paths-ignore:
# - '**.md'
on: pull_request

# jobs:
# test-issue:
# runs-on: ubuntu-latest
jobs:
test-setup-node:
runs-on: ubuntu-latest

# steps:
# - name: Checkout repo
# uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: ${{ env.NODE_VERSION }}
# cache: 'npm'
# cache-dependancy-path: '${{github.repository}}/ui/glypheditor/package-lock.json'
# - run: |
# npm ci
# npm run build --if-present
# #npm run test --if-present
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Node
uses: dusan-trickovic/setup-node@test/cache-pkg-version
with:
node-version: 18.x
cache: npm
- name: Install dependencies
run: npm ci
- name: Success
run: echo 'Success!'
- name: Node Version
run: node --version