Unverified Commit 889c6036 authored by Josh Gross's avatar Josh Gross Committed by GitHub
Browse files

Update workflow (#1)

* Run workflow on linux, mac, and windows

* Add status badge

* Use npm install instead

* Bump typescript version

* Use node 12.x
parent b2cac08c
Loading
Loading
Loading
Loading
+11 −2
Changes for .github/workflows/workflow.yml: 11 added lines, 2 removed lines.
Original line number Diff line number Diff line
name: Test Cache Action
name: Tests
on:
  pull_request:
  push:
@@ -7,10 +7,19 @@ 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

    - name: Prettier Format Check
+2
Changes for README.md: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -2,6 +2,8 @@

This GitHub Action allows caching dependencies and build outputs to improve workflow execution time.

<a href="https://github.com/actions/cache"><img alt="GitHub Actions status" src="https://github.com/actions/cache/workflows/Tests/badge.svg"></a>

## Usage

### Pre-requisites
+3 −3
Changes for package-lock.json: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -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": {
+1 −1
Changes for package.json: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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"
  }
}