Skip to content

Commit b63313d

Browse files
committed
Test report on CI
1 parent b878cb3 commit b63313d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/test.yaml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
6+
permissions:
7+
id-token: write
8+
contents: read
9+
10+
jobs:
11+
test:
12+
name: Test
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Configure AWS Credentials
17+
uses: aws-actions/configure-aws-credentials@v4
18+
with:
19+
aws-region: ap-northeast-1
20+
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/${{ secrets.AWS_ASSUME_ROLE_NAME }}
21+
- name: Install requirments
22+
run: |
23+
pip install -r requirments.txt
24+
- name: Report usage
25+
run: |
26+
python report.py --use-aws-default-session
27+
env:
28+
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
29+
ZULIP_SITE: ${{ secrets.ZULIP_SITE }}
30+
ZULIP_EMAIL: ${{ secrets.ZULIP_EMAIL }}
31+
ZULIP_API_KEY: ${{ secrets.ZULIP_API_KEY }}
32+
ZULIP_TYPE: ${{ secrets.ZULIP_TYPE }}
33+
ZULIP_TO: ${{ secrets.ZULIP_TO }}
34+
ZULIP_TOPIC: ${{ secrets.ZULIP_TOPIC }}
35+
ZULIP_MESSAGE: ${{ secrets.ZULIP_MESSAGE }}

0 commit comments

Comments
 (0)