main.yml 850 B

123456789101112131415161718192021222324252627282930
  1. # This is a basic workflow to help you get started with Actions
  2. name: CI
  3. # Controls when the action will run. Triggers the workflow on push or pull request
  4. # events but only for the master branch
  5. on:
  6. push:
  7. branches: [ master ]
  8. pull_request:
  9. branches: [ master ]
  10. # A workflow run is made up of one or more jobs that can run sequentially or in parallel
  11. jobs:
  12. # This workflow contains a single job called "build"
  13. build:
  14. # The type of runner that the job will run on
  15. runs-on: ubuntu-latest
  16. # Steps represent a sequence of tasks that will be executed as part of the job
  17. steps:
  18. # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  19. - uses: actions/checkout@v2
  20. # Runs a single command using the runners shell
  21. - name: Build
  22. run: make
  23. - name: Test
  24. run: make test