Files
koodo-reader/.github/workflows/build.yml
troyeguo 345ef655a8 fix bug
Former-commit-id: ce738a1b712df661ff26d258f6325aa2a6cee7e3
2021-04-08 20:01:48 +08:00

49 lines
1.1 KiB
YAML

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
runs-on: ubuntu-latest
strategy:
matrix:
project:
- core
- core18
- core20
steps:
- uses: actions/checkout@v2
- uses: ./
id: snapcraft
with:
path: "./test-projects/${{ matrix.project }}"
- uses: actions/upload-artifact@v2
with:
name: "snap"
path: ${{ steps.snapcraft.outputs.snap}}
check-runner: # make sure the action works on each VM image
strategy:
matrix:
runner:
- ubuntu-16.04
- ubuntu-18.04
- ubuntu-20.04
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v2
- uses: ./
with:
path: "./test-projects/core18"