Skip to content

Commit

Permalink
chore: update workflow to target env
Browse files Browse the repository at this point in the history
  • Loading branch information
SimsonW authored and taskingaijc committed May 31, 2024
1 parent e124cc1 commit 3cdb2ac
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ If this PR addresses any issues, please mention them here. For example: Resolves

Before submitting this PR, please make sure:

- [ ] I have read the [CONTRIBUTING.md](/CONTRIBUTING.md) guidelines.
- [ ] I have read the [CONTRIBUTING.md](../CONTRIBUTING.md) guidelines.
- [ ] I have tested my changes locally to ensure they are effective.
- [ ] I have updated the necessary documentation (if applicable).

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-backend.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Backend - Build and Test

on:
pull_request:
pull_request_target:
branches: ["master"]
paths:
- "backend/**"
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test-inference.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Build and Test

on:
pull_request:
pull_request_target:
branches: ["master"]
paths:
- 'inference/**'
- '!**.md'
- '!**.svg'
- '!**.jpg'
- '!**.png'

- "inference/**"
- ".github/workflows/test-inference.yml"
- "!**.md"
- "!**.svg"
- "!**.jpg"
- "!**.png"

env:
ECR_REGISTRY: inference
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/test-plugin.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Build and Test

on:
pull_request:
pull_request_target:
branches: ["master"]
paths:
- 'plugin/**'
- '.github/workflows/test-plugin.yml'
- '!**.md'
- '!**.svg'
- '!**.jpg'
- '!**.png'
- "plugin/**"
- ".github/workflows/test-plugin.yml"
- "!**.md"
- "!**.svg"
- "!**.jpg"
- "!**.png"

env:
AES_ENCRYPTION_KEY: b90e4648ad699c3bdf62c0860e09eb9efc098ee75f215bf750847ae19d41e4b0
Expand Down Expand Up @@ -122,8 +122,8 @@ jobs:
working-directory: plugin
run: |
echo "$TEST_S3_SECRET_AWS" > .env
bash ./test/run_s3_without_test.sh
bash ./test/run_s3_without_test.sh
- name: Stop Docker container
run: |
docker stop aws_s3_docker
Expand All @@ -146,14 +146,14 @@ jobs:
-e AES_ENCRYPTION_KEY=$AES_ENCRYPTION_KEY \
taskingai/taskingai-plugin:$IMAGE_TAG
sleep 5 # Wait for service to start
- name: Run S3 with public domain Tests
working-directory: plugin
run: |
echo "$TEST_S3_SECRET_R2" > .env
bash ./test/run_s3_with_test.sh
bash ./test/run_s3_with_test.sh
- name: Stop Docker container
run: |
docker stop r2_docker
sleep 5
sleep 5

0 comments on commit 3cdb2ac

Please sign in to comment.