Keycloak
26 строк · 857.0 Байт
1name: PhantomJS Cache
2description: Caches PhantomJS driver
3
4inputs:
5version:
6description: PhantomJS Driver version
7required: false
8default: 2.1.1
9
10runs:
11using: composite
12steps:
13- id: cache-phantomjs-driver
14name: PhantomJS Driver cache
15uses: actions/cache@v3
16with:
17path: ~/.arquillian/drone
18key: phantomjs-${{ inputs.version }}
19
20- id: download-phantomjs-driver
21name: Download PhantomJS Driver
22if: steps.cache-phantomjs-driver.outputs.cache-hit != 'true'
23shell: bash
24run: |
25mkdir -p ~/.arquillian/drone/phantomjs/${{ inputs.version }}/
26curl -L https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-${{ inputs.version }}-linux-x86_64.tar.bz2 --output ~/.arquillian/drone/phantomjs/${{ inputs.version }}/phantomjs-${{ inputs.version }}-linux-x86_64.tar.bz2
27