Commit bcc23b93 authored by Aiqiao Yan's avatar Aiqiao Yan
Browse files

React to feeback and change to use 0.2.0 cache package

parent 249a2202
Loading
Loading
Loading
Loading
+5 −3
Changes for .github/workflows/workflow.yml: 5 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -4,11 +4,13 @@ on:
  pull_request:
    branches:
      - master
      - releases/**
    paths-ignore:
      - '**.md'
  push:
    branches:
      - master
      - releases/**
    paths-ignore:
      - '**.md'

@@ -17,7 +19,7 @@ jobs:
  build:
    strategy:
      matrix:
        os: [ubuntu-latest, ubuntu-16.04]
        os: [ubuntu-latest, ubuntu-16.04, windows-latest, macOS-latest]
      fail-fast: false
    runs-on: ${{ matrix.os }}
    steps:
@@ -61,7 +63,7 @@ jobs:
  test-save:
    strategy:
      matrix:
        os: [ubuntu-latest, ubuntu-16.04]
        os: [ubuntu-latest, ubuntu-16.04, windows-latest, macOS-latest]
      fail-fast: false
    runs-on: ${{ matrix.os }}
    steps:
@@ -84,7 +86,7 @@ jobs:
    needs: test-save
    strategy:
      matrix:
        os: [ubuntu-latest, ubuntu-16.04]
        os: [ubuntu-latest, ubuntu-16.04, windows-latest, macOS-latest]
      fail-fast: false
    runs-on: ${{ matrix.os }}
    steps:
+4 −4
Changes for __tests__/actionUtils.test.ts: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ test("setOutputAndState with exact match to set cache-hit output and state", ()
    expect(setOutputMock).toHaveBeenCalledWith(Outputs.CacheHit, "true");
    expect(setOutputMock).toHaveBeenCalledTimes(1);

    expect(saveStateMock).toHaveBeenCalledWith(State.CacheResult, cacheKey);
    expect(saveStateMock).toHaveBeenCalledWith(State.CacheMatchedKey, cacheKey);
    expect(saveStateMock).toHaveBeenCalledTimes(1);
});

@@ -95,7 +95,7 @@ test("setOutputAndState with no exact match to set cache-hit output and state",
    expect(setOutputMock).toHaveBeenCalledWith(Outputs.CacheHit, "false");
    expect(setOutputMock).toHaveBeenCalledTimes(1);

    expect(saveStateMock).toHaveBeenCalledWith(State.CacheResult, cacheKey);
    expect(saveStateMock).toHaveBeenCalledWith(State.CacheMatchedKey, cacheKey);
    expect(saveStateMock).toHaveBeenCalledTimes(1);
});

@@ -109,7 +109,7 @@ test("getCacheState with no state returns undefined", () => {

    expect(state).toBe(undefined);

    expect(getStateMock).toHaveBeenCalledWith(State.CacheResult);
    expect(getStateMock).toHaveBeenCalledWith(State.CacheMatchedKey);
    expect(getStateMock).toHaveBeenCalledTimes(1);
});

@@ -125,7 +125,7 @@ test("getCacheState with valid state", () => {

    expect(state).toEqual(cacheKey);

    expect(getStateMock).toHaveBeenCalledWith(State.CacheResult);
    expect(getStateMock).toHaveBeenCalledWith(State.CacheMatchedKey);
    expect(getStateMock).toHaveBeenCalledTimes(1);
});

+2089 −659

File changed.

Preview size limit exceeded, changes collapsed.

+2088 −658

File changed.

Preview size limit exceeded, changes collapsed.

+2793 −6161

File changed.

Preview size limit exceeded, changes collapsed.

Loading