Merge pull request #34 from Mailaender/node16 #56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
- 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@v3 | |
- 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 |