-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests on push; improve the docker image (#57)
* tests on push; improve the docker image * move ci_build and ci_cache out of workdir
- Loading branch information
Showing
5 changed files
with
40 additions
and
41 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,31 @@ | ||
# Perform continuous integration tests on updates and pull requests | ||
name: Build test | ||
on: | ||
pull_request: | ||
types: [synchronize] | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: dorny/paths-filter@v2 | ||
id: changes | ||
with: | ||
filters: | | ||
paths: | ||
klippy: | ||
- 'klippy/**' | ||
- 'test/**' | ||
- 'scripts/**' | ||
klipper: | ||
- 'src/**' | ||
- 'lib/**' | ||
- 'test/**' | ||
- id: should_test | ||
if: steps.changes.outputs.paths == 'true' && github.event.review.state == 'approved' | ||
run: | | ||
echo "::set-output name=run_test::true" | ||
- name: Test | ||
if: steps.should_test.outputs.run_test == 'true' | ||
run: docker run ${{ secrets.DOCKERHUB_USERNAME }}/klipper-build:latest "./scripts/ci-build.sh" 2>&1 | ||
- name: Test Klippy Only | ||
if: steps.changes.outputs.klippy == 'true' && steps.changes.outputs.klipper == 'false' | ||
run: docker run -v $PWD:/klipper ${{ secrets.DOCKERHUB_USERNAME }}/klipper-build:latest "./scripts/ci-build.sh" 2>&1 | ||
|
||
- name: Upload micro-controller data dictionaries | ||
if: steps.should_test.outputs.run_test == 'true' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: data-dict | ||
path: ci_build/dict | ||
- name: Test Klipper Full | ||
if: steps.changes.outputs.klippy == 'true' && steps.changes.outputs.klipper == 'true' | ||
run: docker run -v $PWD:/klipper ${{ secrets.DOCKERHUB_USERNAME }}/klipper-build:latest "./scripts/ci-build.sh" compile 2>&1 |
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
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
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
This file was deleted.
Oops, something went wrong.