Skip to content

Commit

Permalink
Add Test output script
Browse files Browse the repository at this point in the history
  • Loading branch information
JackPlowman committed Oct 11, 2024
1 parent bbfd6f1 commit e794c83
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/code-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Code Test
on:
push:
branches: [main]
branches-ignore: [release-please-*]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]

Expand Down Expand Up @@ -56,3 +57,20 @@ jobs:

- name: Validate Schema
run: just validate-schema

test-action:
name: Test Action
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Run GitHub Stats Analyser (pre-built image)
uses: ./
with:
REPOSITORY_OWNER: ${{ github.REPOSITORY_OWNER }}

- name: Test Output
run: test/test_output.sh
8 changes: 8 additions & 0 deletions test/test_output.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -e +x

# check file exists
test -f repository_statistics.json

# check file is not empty
test -s repository_statistics.json

0 comments on commit e794c83

Please sign in to comment.