Skip to content

Commit

Permalink
Change the trigger for pr-test (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoChilia authored Apr 17, 2024
1 parent 99c7fe7 commit 4dd0d30
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pr-test
on:
pull_request_target:
pull_request:
branches:
- master
- releases/*
Expand All @@ -9,7 +9,6 @@ on:

jobs:
basic_test:
environment: Automation Test
runs-on: ubuntu-latest
steps:
- name: Check out source code
Expand All @@ -29,24 +28,18 @@ jobs:
run: |
ncc build -C -m src/entrypoint.ts
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Test - Postive
uses: ./
with:
azcliversion: 2.30.0
inlineScript: |
az --version
az account show --output none
- name: Default version test - Postive
uses: ./
with:
inlineScript: |
az --version
az account show --output none
- name: Invalid Version test - Negative
id: test1
Expand Down Expand Up @@ -80,7 +73,6 @@ jobs:
core.setFailed('Last action should fail but not. Please check it.')
os_test:
environment: Automation Test
runs-on: windows-latest
steps:
- name: Check out source code
Expand All @@ -100,10 +92,6 @@ jobs:
run: |
ncc build -C -m src/entrypoint.ts
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Invalid OS - Negative
id: test3
continue-on-error: true
Expand Down

0 comments on commit 4dd0d30

Please sign in to comment.