From 3e60572087e7ece50f42cbc147fa9b139d163993 Mon Sep 17 00:00:00 2001 From: Louis Aussedat Date: Tue, 13 Feb 2024 09:44:01 +0100 Subject: [PATCH] chore: add github action --- .github/workflows/pull_request.yml | 62 +++++++++++++++++------------- 1 file changed, 35 insertions(+), 27 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 0bafccffa..fac63debd 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -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