This repository has been archived by the owner on Mar 6, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e18572
commit 8c904d8
Showing
9 changed files
with
383 additions
and
18 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,146 @@ | ||
name: test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
schematic: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: kicad-exports schematic docs | ||
uses: nerdyscout/kicad-exports@master | ||
with: | ||
cmd: schematic | ||
dir: test/docs | ||
board: test/test.kicad_pcb | ||
schematic: test/test.sch | ||
- name: kicad-schematic | ||
uses: andstor/file-existence-action@v1 | ||
with: | ||
files: "test/docs/test_schematic.svg, test/docs/test_schematic.pdf" | ||
- uses: actions/upload-artifact@v2 | ||
if: success() | ||
with: | ||
name: schematic | ||
path: test/docs/* | ||
|
||
bom: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: kicad-exports ibom docs/bom | ||
uses: nerdyscout/kicad-exports@master | ||
with: | ||
cmd: bom | ||
dir: test/docs/bom | ||
board: test/test.kicad_pcb | ||
schematic: test/test.sch | ||
- name: "check output: bom" | ||
if: success() | ||
uses: andstor/file-existence-action@v1 | ||
with: | ||
files: "test/docs/bom/ibom.html, test/docs/bom/test.csv, test/docs/bom/test.xlsx" | ||
- uses: actions/upload-artifact@v2 | ||
if: success() | ||
with: | ||
name: bom | ||
path: test/docs/bom/* | ||
|
||
fabrication: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: kicad-exports fabrication gerber | ||
uses: nerdyscout/kicad-exports@master | ||
with: | ||
cmd: fabrication | ||
dir: test/gerber | ||
board: test/test.kicad_pcb | ||
schematic: test/test.sch | ||
- name: "check output: kiplot-position" | ||
uses: andstor/file-existence-action@v1 | ||
with: | ||
files: "test/gerber/test-both-pos.csv" | ||
- name: "check output: kiplot-drills" | ||
uses: andstor/file-existence-action@v1 | ||
with: | ||
files: "test/gerber/test-PTH.drl, test/gerber/test-NPTH.drl" | ||
- uses: andstor/file-existence-action@v1 | ||
with: | ||
files: "test/gerber/test-PTH-drl.gbr, test/gerber/test-NPTH-drl.gbr" | ||
- name: "check output: kiplot-gerber" | ||
uses: andstor/file-existence-action@v1 | ||
with: | ||
files: "test/gerber/test-Edge_Cuts.gbr, test/gerber/test-F_Cu.gbr, test/gerber/test-B_SilkS.gbr" | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: gerber | ||
path: test/gerber/* | ||
|
||
report: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: kicad-exports report | ||
uses: nerdyscout/kicad-exports@master | ||
with: | ||
cmd: report | ||
dir: test | ||
schematic: test/test.sch | ||
board: test/test.kicad_pcb | ||
- name: "check output: erc" | ||
uses: andstor/file-existence-action@v1 | ||
with: | ||
files: "test/test.erc" | ||
- name: "check output: drc" | ||
uses: andstor/file-existence-action@v1 | ||
with: | ||
files: "test/test.rpt" | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: report | ||
path: test/ | ||
|
||
tracespace: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: kicad-exports tracespace-board | ||
uses: nerdyscout/kicad-exports@master | ||
with: | ||
cmd: tracespace-board | ||
dir: test/docs/img | ||
schematic: test/test.sch | ||
board: test/test.kicad_pcb | ||
- name: "check output: tracespace-board" | ||
uses: andstor/file-existence-action@v1 | ||
with: | ||
files: "test/docs/img/test_Board_Top.svg, test/docs/img/test_Board_Bottom.svg" | ||
|
||
- name: kicad-exports tracespace-assembly | ||
uses: nerdyscout/kicad-exports@master | ||
with: | ||
cmd: tracespace-assembly | ||
dir: test/docs/img | ||
schematic: test/test.sch | ||
board: test/test.kicad_pcb | ||
- name: "check output: tracespace-assembly" | ||
uses: andstor/file-existence-action@v1 | ||
with: | ||
files: "test/docs/img/test_Assembly_Top.svg, test/docs/img/test_Assembly_Bottom.svg" | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: images | ||
path: test/docs/img/* |
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 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
Oops, something went wrong.