feat(action): introduce fork action #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
permissions: | ||
contents: read | ||
jobs: | ||
test-typescript: | ||
name: TypeScript Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Node.js | ||
id: setup-node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .node-version | ||
cache: npm | ||
- name: Install current dependencies | ||
run: yarn install --frozen-lockfile | ||
- name: Check Format | ||
run: yarn format:check | ||
- name: Lint | ||
run: yarn lint | ||
test-action: | ||
name: GitHub Actions Test | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event_name === "pull_request" }} | ||
Check failure on line 41 in .github/workflows/ci.yml GitHub Actions / Continuous IntegrationInvalid workflow file
|
||
steps: | ||
- name: Checkout | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
- name: Test Local Action | ||
id: test-action | ||
uses: ./ | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
workflow_id: '.github/workflows/check-dist.yml' | ||
jobs: ['Diff'] | ||
head_sha: ${{ github.event.pull_request.head.sha }} | ||
repo: 'gear-tech/fork-action' | ||
ref: ${{ github.head_ref || github.ref_name }} |