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 Jobs for Testing the version Input #217

Merged
merged 2 commits into from
Feb 28, 2024
Merged
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
39 changes: 39 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,45 @@ jobs:
- name: Build Package
run: yarn pack

test-action-with-specific-version:
name: Test Action With Specific Version
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [windows, ubuntu, macos]
steps:
- name: Checkout Package
uses: actions/checkout@v4.1.1
with:
repository: threeal/nodejs-starter
ref: v1.0.0

- name: Alter Package
shell: bash
run: jq 'del(.packageManager)' package.json > package.json.tmp && mv package.json.tmp package.json

- name: Checkout Action
uses: actions/checkout@v4.1.1
with:
path: setup-yarn-action
sparse-checkout: |
action.yaml
dist
sparse-checkout-cone-mode: false

- name: Setup Yarn
uses: ./setup-yarn-action
with:
version: 4.0.2

- name: Check Version
shell: bash
run: test $(yarn --version) == 4.0.2

- name: Build Package
run: yarn pack

test-action-without-cache:
name: Test Action Without Cache
runs-on: ${{ matrix.os }}-latest
Expand Down
Loading