From 889c60369186135251d7fc0c9dd1cd3dac6c1d6e Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Thu, 31 Oct 2019 10:37:00 -0400 Subject: [PATCH 1/3] Update workflow (#1) * Run workflow on linux, mac, and windows * Add status badge * Use npm install instead * Bump typescript version * Use node 12.x --- .github/workflows/workflow.yml | 13 +++++++++++-- README.md | 4 +++- package-lock.json | 6 +++--- package.json | 2 +- 4 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 2aadbfe..03a4d09 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -1,4 +1,4 @@ -name: Test Cache Action +name: Tests on: pull_request: push: @@ -7,9 +7,18 @@ on: jobs: test: - runs-on: ubuntu-latest + name: Test on ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + runs-on: ${{ matrix.os }} + steps: - uses: actions/checkout@v1 + + - uses: actions/setup-node@v1 + with: + node-version: '12.x' - run: npm ci diff --git a/README.md b/README.md index e6d5923..c42b1f6 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ This GitHub Action allows caching dependencies and build outputs to improve workflow execution time. +GitHub Actions status + ## Usage ### Pre-requisites @@ -130,4 +132,4 @@ steps: We would love for you to contribute to `@actions/cache`, pull requests are welcome! Please see the [CONTRIBUTING.md](CONTRIBUTING.md) for more information. ## License -The scripts and documentation in this project are released under the [MIT License](LICENSE) \ No newline at end of file +The scripts and documentation in this project are released under the [MIT License](LICENSE) diff --git a/package-lock.json b/package-lock.json index 4353683..ed53148 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4975,9 +4975,9 @@ } }, "typescript": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.3.tgz", - "integrity": "sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g==", + "version": "3.6.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.6.4.tgz", + "integrity": "sha512-unoCll1+l+YK4i4F8f22TaNVPRHcD9PA3yCuZ8g5e0qGqlVlJ/8FSateOLLSagn+Yg5+ZwuPkL8LFUc0Jcvksg==", "dev": true }, "uglify-js": { diff --git a/package.json b/package.json index 7eb60f2..96167df 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,6 @@ "jest-circus": "^24.7.1", "prettier": "1.18.2", "ts-jest": "^24.0.2", - "typescript": "^3.5.1" + "typescript": "^3.6.4" } } From 7611296bb3a8babd294b5a716ab096cc16ffc281 Mon Sep 17 00:00:00 2001 From: Kosuke Ogawa Date: Thu, 31 Oct 2019 23:45:47 +0900 Subject: [PATCH 2/3] Add Ruby Gem example (#4) --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index c42b1f6..32546d2 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,16 @@ jobs: key: ${{ runner.os }}-maven ``` +### Ruby - Gem +```yaml +- uses: actions/cache@preview + with: + path: vendor/bundle + key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-gem- +``` + ## Cache Limits Individual caches are limited to 200MB and a repository can have up to 2GB of caches. Once the 2GB limit is reached, older caches will be evicted based on when the cache was last accessed. From 83bb08ded34bd5f015d889bc7baf8ab4f047400b Mon Sep 17 00:00:00 2001 From: Kosuke Ogawa Date: Thu, 31 Oct 2019 23:47:43 +0900 Subject: [PATCH 3/3] Add Cocoapods example (#5) --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 32546d2..4d23fa2 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,16 @@ jobs: key: ${{ runner.os }}-maven ``` +### Swift, Objective-C - CocoaPods +```yaml +- uses: actions/cache@preview + with: + path: Pods + key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} + restore-keys: | + ${{ runner.os }}-pods- +``` + ### Ruby - Gem ```yaml - uses: actions/cache@preview @@ -110,6 +120,7 @@ jobs: key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} restore-keys: | ${{ runner.os }}-gem- + ``` ## Cache Limits