From a12624a23034552710a3bf4932d30af282a439eb Mon Sep 17 00:00:00 2001 From: Noelle Caldwell Date: Mon, 16 Nov 2020 13:53:05 -0800 Subject: [PATCH 1/4] Create test.yml --- .github/workflows/test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000000000..8989256852967 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,30 @@ +# This is a basic workflow to help you get started with Actions + +name: Test RichNav + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: [ master ] + pull_request: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: windows-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + - run: powershell node --version + + # Runs a single command using the runners shell + - name: install dependencies + run: yarn --frozen-lockfile + env: + CHILD_CONCURRENCY: 1 + From a6eca8a18b055d778d6b23a53a83a38572e258cf Mon Sep 17 00:00:00 2001 From: Noelle Caldwell Date: Mon, 16 Nov 2020 14:00:22 -0800 Subject: [PATCH 2/4] Update test.yml --- .github/workflows/test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8989256852967..057904954c4ac 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,10 +21,16 @@ jobs: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - run: powershell node --version - - # Runs a single command using the runners shell + + - uses: actions/setup-node@v1 + with: + node-version: '12' + + - run: powershell node --version + - name: install dependencies run: yarn --frozen-lockfile env: CHILD_CONCURRENCY: 1 + - run: powershell node --version From 8899934a99400ee85a0e7172ddd17c5db4218796 Mon Sep 17 00:00:00 2001 From: Noelle Caldwell Date: Mon, 16 Nov 2020 15:51:13 -0800 Subject: [PATCH 3/4] Update test.yml --- .github/workflows/test.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 057904954c4ac..f7fdfa99c884b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,17 +20,16 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - run: powershell node --version - - - uses: actions/setup-node@v1 + - uses: actions/cache@v2 + id: caching-stage + name: Cache VS Code dependencies with: - node-version: '12' - - - run: powershell node --version - - - name: install dependencies - run: yarn --frozen-lockfile - env: - CHILD_CONCURRENCY: 1 + path: node_modules + key: ${{ runner.os }}-dependencies-${{ hashfiles('yarn.lock') }} + restore-keys: ${{ runner.os }}-dependencies- - run: powershell node --version + + - run: echo ${{ steps.caching-stage.outputs.cache-hit }} + - run: echo ${{ steps.caching-stage.outputs.cache-hit != 'true' }} + From e18cf39fe1590c91a7b3f9a3c0a0b910c047f01b Mon Sep 17 00:00:00 2001 From: Noelle Caldwell Date: Mon, 16 Nov 2020 15:53:57 -0800 Subject: [PATCH 4/4] Update test.yml --- .github/workflows/test.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f7fdfa99c884b..b3d4db070389d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,6 +30,5 @@ jobs: - run: powershell node --version - - run: echo ${{ steps.caching-stage.outputs.cache-hit }} - - run: echo ${{ steps.caching-stage.outputs.cache-hit != 'true' }} + - run: echo $steps.caching-stage.outputs.cache-hit