From fc4d56d99766892342d9eb01ddae560d1591f17b Mon Sep 17 00:00:00 2001 From: Ward Poelmans Date: Mon, 12 Dec 2022 13:04:41 +0100 Subject: [PATCH 1/2] run actions on pull request too --- .github/workflows/build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 45c872e..cd309f6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,5 @@ name: 'build-test' -on: - push: +on: [push, pull_request] jobs: build: From 62a3123e5e4c08bd6a8a27f0c411591839fca491 Mon Sep 17 00:00:00 2001 From: Ward Poelmans Date: Mon, 12 Dec 2022 13:12:43 +0100 Subject: [PATCH 2/2] fix deprecation warnings --- .github/workflows/build.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cd309f6..9edff37 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,13 +8,13 @@ jobs: os: [ubuntu, macos, windows] runs-on: ${{ matrix.os }}-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v2 + run: echo "yarncachedir=$(yarn cache dir)" >> $GITHUB_ENV + shell: bash + - uses: actions/cache@v3 with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + path: ${{ env.yarncachedir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- @@ -37,17 +37,17 @@ jobs: needs: [build] if: github.ref == 'refs/heads/master' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v2 + run: echo "yarncachedir=$(yarn cache dir)" >> $GITHUB_ENV + shell: bash + - uses: actions/cache@v3 with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + path: ${{ env.yarncachedir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: 'latest' path: 'dist'