diff options
| author | Nick Brassel <nick@tzarc.org> | 2021-11-20 09:04:11 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-20 09:04:11 +1100 |
| commit | 8cefe141f8f9a9cfebc15f87fab9f19c2675e181 (patch) | |
| tree | 4ab848283583de6d7c2165fc4d2be8d8237f2e88 | |
| parent | ac00b6da293d0318505e80df7069d1e3e4925547 (diff) | |
| download | qmk_firmware-8cefe141f8f9a9cfebc15f87fab9f19c2675e181.tar.gz qmk_firmware-8cefe141f8f9a9cfebc15f87fab9f19c2675e181.zip | |
CI: Create GitHub Actions unit test workflow (#15223)
* Create GitHub Actions unit test workflow
* Create GitHub Actions unit test workflow - checkout submodules
* Create GitHub Actions unit test workflow - update job name
* Develop branch.
* Update .github/workflows/unit_test.yml
Co-authored-by: Joel Challis <git@zvecr.com>
* Update .github/workflows/unit_test.yml
Co-authored-by: Joel Challis <git@zvecr.com>
* builddefs
Co-authored-by: zvecr <git@zvecr.com>
| -rw-r--r-- | .github/workflows/cli.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/unit_test.yml | 30 |
2 files changed, 31 insertions, 1 deletions
diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 3bf9741ac..2ea810958 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml | |||
| @@ -4,7 +4,7 @@ on: | |||
| 4 | push: | 4 | push: |
| 5 | branches: | 5 | branches: |
| 6 | - master | 6 | - master |
| 7 | - future | 7 | - develop |
| 8 | pull_request: | 8 | pull_request: |
| 9 | paths: | 9 | paths: |
| 10 | - 'lib/python/**' | 10 | - 'lib/python/**' |
diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml new file mode 100644 index 000000000..26bcb2f51 --- /dev/null +++ b/.github/workflows/unit_test.yml | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | name: Unit Tests | ||
| 2 | |||
| 3 | on: | ||
| 4 | push: | ||
| 5 | branches: | ||
| 6 | - master | ||
| 7 | - develop | ||
| 8 | pull_request: | ||
| 9 | paths: | ||
| 10 | - 'builddefs/**' | ||
| 11 | - 'quantum/**' | ||
| 12 | - 'platforms/**' | ||
| 13 | - 'tmk_core/**' | ||
| 14 | - 'tests/**' | ||
| 15 | - '*.mk' | ||
| 16 | - 'Makefile' | ||
| 17 | - '.github/workflows/unit_test.yml' | ||
| 18 | |||
| 19 | jobs: | ||
| 20 | test: | ||
| 21 | runs-on: ubuntu-latest | ||
| 22 | |||
| 23 | container: qmkfm/base_container | ||
| 24 | |||
| 25 | steps: | ||
| 26 | - uses: actions/checkout@v2 | ||
| 27 | with: | ||
| 28 | submodules: recursive | ||
| 29 | - name: Run tests | ||
| 30 | run: make test:all | ||
