Skip to content

Commit

Permalink
test: add sample test
Browse files Browse the repository at this point in the history
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
  • Loading branch information
Abirdcfly committed Feb 7, 2023
1 parent 610fb0c commit ca148a9
Show file tree
Hide file tree
Showing 2 changed files with 616 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/example-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Example Test

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

jobs:
example:
env:
LOG_DIR: "/tmp/fabric-operator-example-test/logs"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Build
run: |
scripts/install-tools.sh
make image
- name: Example Test
run: config/samples/example-test.sh
- name: Upload logs
if: failure()
uses: actions/upload-artifact@v3
with:
name: ${{ env.GITHUB_SHA }}.kind.logs
path: ${{ env.LOG_DIR }}
Loading

0 comments on commit ca148a9

Please sign in to comment.