diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..bf62b5db --- /dev/null +++ b/.github/workflows/test.yml @@ -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 }} \ No newline at end of file