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

Upgrade to yarn 3 #457

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Support nektos/act for debugging GitHub Actions
Fryguy committed Aug 2, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 2aa19416650d5a8379f7132c28081462ed34a3a3
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -16,11 +16,13 @@ jobs:
- '14'
steps:
- uses: actions/checkout@v2
- name: Set up system
run: bin/before_install
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: yarn
cache: ${{ !env.ACT && 'yarn' || '' }}
registry-url: https://npm.manageiq.org/
- name: Prepare tests
run: bin/setup
8 changes: 8 additions & 0 deletions bin/before_install
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

if [ -n "$ACT" ]; then
# Install yarn
curl -o- -L https://yarnpkg.com/install.sh | bash
echo "$HOME/.yarn/bin" >> $GITHUB_PATH
echo "$HOME/.config/yarn/global/node_modules/.bin" >> $GITHUB_PATH
fi