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 7251369
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
name: pull_request

on: [pull_request]

env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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

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

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

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

Expand All @@ -37,6 +38,14 @@ jobs:
- uses: ./actions/setup-toolchain-composite

- name: Test
env:
FORCE_COLOR: "1"
run: pnpm test

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

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

- name: Danger
run: pnpm danger ci

0 comments on commit 7251369

Please sign in to comment.