-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github: actions: Add CI tests for push
Signed-off-by: Matheus Castello <[email protected]>
- Loading branch information
1 parent
02df566
commit 108955b
Showing
4 changed files
with
255 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Python Debug Containers | ||
on: | ||
- push | ||
|
||
jobs: | ||
python3-debug: | ||
runs-on: ubuntu-latest | ||
name: Python3 Container Debug | ||
strategy: | ||
matrix: | ||
project: | ||
- { | ||
folder: python3Console, | ||
container: python3-console | ||
} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build ${{ matrix.project.folder }} Dockerfile.debug | ||
shell: pwsh | ||
env: | ||
PROJECT_FOLDER: ${{ matrix.project.folder }} | ||
PROJECT_CONTAINER: ${{ matrix.project.container }} | ||
|
||
run: | | ||
docker run --rm --privileged torizon/binfmt | ||
scripts/createFromTemplate.ps1 ` | ||
$env:GITHUB_WORKSPACE/$env:PROJECT_FOLDER ` | ||
"${env:PROJECT_FOLDER}CITest" ` | ||
"${env:PROJECT_CONTAINER}-ci-test" ` | ||
$env:GITHUB_WORKSPACE ` | ||
$env:PROJECT_FOLDER ` | ||
false ` | ||
false | ||
cd "${env:GITHUB_WORKSPACE}/${env:PROJECT_FOLDER}CITest" | ||
./.vscode/tasks.ps1 run build-container-torizon-debug-arm64 |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Python Containers | ||
on: | ||
- push | ||
|
||
jobs: | ||
python3-debug: | ||
runs-on: ubuntu-latest | ||
name: Python3 Container | ||
strategy: | ||
matrix: | ||
project: | ||
- { | ||
name: python3Console, | ||
container: python3-console | ||
} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build ${{ matrix.project.folder }} Dockerfile | ||
shell: pwsh | ||
env: | ||
PROJECT_FOLDER: ${{ matrix.project.folder }} | ||
PROJECT_CONTAINER: ${{ matrix.project.container }} | ||
|
||
run: | | ||
docker run --rm --privileged torizon/binfmt | ||
scripts/createFromTemplate.ps1 ` | ||
$env:GITHUB_WORKSPACE/$env:PROJECT_FOLDER ` | ||
"${env:PROJECT_FOLDER}CITest" ` | ||
"${env:PROJECT_CONTAINER}-ci-test" ` | ||
$env:GITHUB_WORKSPACE ` | ||
$env:PROJECT_FOLDER ` | ||
false ` | ||
false | ||
cd "${env:GITHUB_WORKSPACE}/${env:PROJECT_FOLDER}CITest" | ||
./.vscode/tasks.ps1 run build-container-torizon-arm64 |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Sanity Check | ||
on: | ||
- push | ||
|
||
jobs: | ||
spell-check: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: node:16 | ||
name: Spell Check | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: cspell CLI Lint | ||
|
||
shell: bash | ||
|
||
run: | | ||
npm install git+https://github.com/streetsidesoftware/cspell-cli | ||
npx cspell-cli lint --relative | ||
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