Skip to content

Commit 3c7a79e

Browse files
authored
Merge pull request #7 from flaviouk/test
Add initial version
2 parents ebd0bea + 4f183f0 commit 3c7a79e

File tree

104 files changed

+1178325
-8206
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+1178325
-8206
lines changed

.eslintignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/check-dist.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,13 @@ jobs:
2323
steps:
2424
- uses: actions/checkout@v2
2525

26-
- name: Set Node.js 12.x
27-
uses: actions/[email protected]
28-
with:
29-
node-version: 12.x
26+
- uses: volta-cli/action@v1
3027

3128
- name: Install dependencies
32-
run: npm ci
29+
run: yarn --frozen-lockfile
3330

3431
- name: Rebuild the dist/ directory
35-
run: npm run build
32+
run: yarn build
3633

3734
- name: Compare the expected and actual dist/ directories
3835
run: |

.github/workflows/test.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,24 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
14-
- run: |
15-
npm install
16-
- run: |
17-
npm run all
14+
15+
- uses: volta-cli/action@v1
16+
17+
- name: Install dependencies
18+
run: yarn --frozen-lockfile
19+
20+
- run: yarn all
21+
1822
test: # make sure the action works on a clean machine without building
1923
runs-on: ubuntu-latest
2024
steps:
2125
- uses: actions/checkout@v2
22-
- uses: ./
26+
27+
- name: Get Cache Key
28+
uses: ./
29+
id: cache-key
2330
with:
24-
milliseconds: 1000
31+
cache-prefix: foo-bar
32+
33+
- name: Print Cache Key
34+
run: echo ${{ steps.cache-key.outputs.cacheKey }}

__tests__/main.test.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

action.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
name: 'Your name here'
1+
name: 'Monorepo Cache'
22
description: 'Provide a description here'
3-
author: 'Your name or organization here'
3+
author: 'flaviouk'
44
inputs:
5-
milliseconds: # change this
6-
required: true
7-
description: 'input description here'
8-
default: 'default value if applicable'
5+
cache-prefix:
6+
required: false
7+
description: 'cache will be prefix with this'
98
runs:
109
using: 'node12'
1110
main: 'dist/index.js'

0 commit comments

Comments
 (0)