File tree 2 files changed +38
-2
lines changed 2 files changed +38
-2
lines changed Original file line number Diff line number Diff line change
1
+ # euclidpower/setup-dependencies-action
2
+
3
+ Reduce the duplication when setting up jobs.
4
+
5
+ This tool allows you to setup ruby, nodejs and playwright.
6
+
7
+ # How to use it
8
+
9
+ ``` yml
10
+ jobs :
11
+ your-new-job :
12
+ name : A descriptive name
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+
17
+ - uses : euclidpower/setup-dependencies-action@v3
18
+ with :
19
+ cache_playwright : true # optional, defaults to "0"
20
+
21
+ ```
22
+
23
+ # Development
24
+ 1 . Clone the repo
25
+ 2 . Write your changes
26
+ 3 . Create a commit
27
+ 4 . Add a new tag, for example for "v4": ` git tag -a -f -m "A description of this new release" v4 `
28
+ 5 . Push the tags to origin
29
+ 6 . Confirm the changes work as expected in your codebase. If they don't, you can delete the tag and repeat the process from step 3
Original file line number Diff line number Diff line change 1
1
name : Set up and cache Ruby and NodeJS
2
2
description : Setting up and caching dependencies of euclidpower/webapp
3
+ inputs :
4
+ cache_playwright :
5
+ description : Should Cache Playwright binaries
6
+ required : false
7
+ default : " 0"
3
8
runs :
4
9
using : composite
5
10
steps :
@@ -16,19 +21,21 @@ runs:
16
21
shell : bash
17
22
18
23
- name : Get installed Playwright version
24
+ if : inputs.cache_playwright != '0'
19
25
run : echo "PLAYWRIGHT_VERSION=$(yarn list --pattern="@playwright/test" --json | jq '.data.trees[0].name' -r | sed 's/.*@//')" >> $GITHUB_ENV
20
26
shell : bash
21
27
22
28
- name : Cache Playwright binaries
29
+ if : inputs.cache_playwright != '0'
23
30
uses : actions/cache@v4
24
31
id : playwright-cache
25
32
with :
26
33
path : ~/.cache/ms-playwright
27
34
key : ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
28
35
restore-keys : |
29
- ${{ runner.os }}-playwright-
36
+ ${{ runner.os }}-playwright-
30
37
31
38
- name : Download Playwright dependencies and browsers
39
+ if : inputs.cache_playwright != '0' && steps.playwright-cache.outputs.cache-hit != 'true'
32
40
run : yarn playwright install --with-deps chromium
33
41
shell : bash
34
- if : steps.playwright-cache.outputs.cache-hit != 'true'
You can’t perform that action at this time.
0 commit comments