Skip to content

Commit 541f70b

Browse files
authored
Merge pull request #1767 from Fryguy/support_act
Support the act tool for testing GHA
2 parents c30f9b6 + 5226d74 commit 541f70b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ jobs:
1111
- 12
1212
steps:
1313
- uses: actions/checkout@v2
14+
- name: Set up system
15+
run: bin/before_install
1416
- name: Set up Node
1517
uses: actions/setup-node@v2
1618
with:
1719
node-version: ${{ matrix.node-version }}
18-
cache: yarn
20+
cache: ${{ !env.ACT && 'yarn' || '' }}
1921
registry-url: https://npm.manageiq.org/
2022
- name: Prepare tests
2123
run: bin/setup

bin/before_install

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
if [ -n "$ACT" ]; then
4+
curl -o- -L https://yarnpkg.com/install.sh | bash
5+
echo "$HOME/.yarn/bin" >> $GITHUB_PATH
6+
echo "$HOME/.config/yarn/global/node_modules/.bin" >> $GITHUB_PATH
7+
fi

0 commit comments

Comments
 (0)