Skip to content

Commit

Permalink
chore: add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
aussedatlo committed Feb 13, 2024
1 parent 3ad45ea commit 3e60572
Showing 1 changed file with 35 additions and 27 deletions.
62 changes: 35 additions & 27 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,50 @@
name: pull_request

on: [pull_request]

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DANGER_GITHUB_API_BASE_URL: "https://api.github.com"
CI_JOB_NUMBER: 1
FORCE_COLOR: 1

jobs:
lint:
runs-on: [device-sdk-4xlarge-linux]
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v3
# lint:
# runs-on: [device-sdk-4xlarge-linux]
# steps:
# - uses: actions/checkout@v3

- uses: ./actions/setup-toolchain-composite
# - uses: ./actions/setup-toolchain-composite

- name: Lint
env:
FORCE_COLOR: "1"
run: pnpm lint
# - name: Lint
# run: pnpm lint

prettier:
runs-on: [device-sdk-4xlarge-linux]
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v3
# prettier:
# runs-on: [device-sdk-4xlarge-linux]
# steps:
# - uses: actions/checkout@v3

- uses: ./actions/setup-toolchain-composite
# - uses: ./actions/setup-toolchain-composite

# - name: Prettier
# run: pnpm prettier

# test:
# runs-on: [device-sdk-4xlarge-linux]
# steps:
# - uses: actions/checkout@v3

# - uses: ./actions/setup-toolchain-composite

- name: Prettier
run: pnpm prettier
# - name: Test
# run: pnpm test

test:
danger:
runs-on: [device-sdk-4xlarge-linux]
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v3

- uses: ./actions/setup-toolchain-composite

- name: Test
env:
FORCE_COLOR: "1"
run: pnpm test
- name: Danger
run: pnpm danger ci

0 comments on commit 3e60572

Please sign in to comment.