From 49c9fa331cd8a7bba2d18c4dcbd629c38cd22de3 Mon Sep 17 00:00:00 2001 From: troyeguo <13820674+troyeguo@users.noreply.github.com> Date: Thu, 8 Apr 2021 20:03:23 +0800 Subject: [PATCH] fix bug Former-commit-id: 2ebaba0f86d8b12733c50f37a4835505f3d15e9d --- .github/workflows/publish.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e69de29b..b69f8e96 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -0,0 +1,31 @@ +name: "build-test" +on: # rebuild any PRs and main branch changes + pull_request: + push: + branches: + - master + - "releases/*" + +jobs: + unit: # make sure build/ci work properly + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: | + npm install + npm run all + integration: # make sure the action works on a clean machine without building + # Only run integration test if we have access to secrets + if: github.event_name != 'pull_request' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: snapcore/action-build@v1 + id: build + with: + path: "./sample-project" + - uses: ./ + with: + store_login: ${{ secrets.STORE_LOGIN }} + snap: ${{ steps.build.outputs.snap }} + release: edge