Skip to content

Commit

Permalink
[demo] test jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyBoWu committed Jan 11, 2024
1 parent 85c4de8 commit 955c038
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: my action
on: pull_request_target

jobs:
pr-check:
name: Check PR
runs-on: ubuntu-latest
steps:
- name: Setup Action
uses: actions/checkout@v2
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install dependencies
run: npm install
- name: Run tests
run: echo $SOME_SECRET
env:
SOME_SECRET: ${{ secrets.API_BASE_URL }}

0 comments on commit 955c038

Please sign in to comment.