Skip to content

Commit

Permalink
ci: update verify workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzkirstein committed Mar 14, 2024
1 parent 6b1b9cb commit 86afc9c
Showing 1 changed file with 47 additions and 44 deletions.
91 changes: 47 additions & 44 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,35 @@ on:
workflow_dispatch:

jobs:
# lint:
# name: Lint
# runs-on: ubuntu-latest
# timeout-minutes: 5
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Clone repository
uses: actions/checkout@v4

# steps:
# - name: Clone repository
# uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/install-dependencies

# - name: Install dependencies
# uses: ./.github/actions/install-dependencies
# - name: Lint code
# run: npm format && npm lint:fix

# - name: Lint code
# run: npm format && bun lint:fix
- name: Lint code
run: npm run lint:fix

# - uses: stefanzweifel/git-auto-commit-action@v5
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# commit_message: 'chore: format'
# commit_user_name: 'github-actions[bot]'
# commit_user_email: 'github-actions[bot]@users.noreply.github.com'
- uses: stefanzweifel/git-auto-commit-action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commit_message: 'chore: format'
commit_user_name: 'github-actions[bot]'
commit_user_email: 'github-actions[bot]@users.noreply.github.com'

build:
name: Build
# needs: lint
needs: lint
runs-on: ubuntu-latest
timeout-minutes: 5

Expand All @@ -45,7 +48,7 @@ jobs:

types:
name: Types
# needs: lint
needs: lint
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
Expand All @@ -64,27 +67,27 @@ jobs:
- name: Check types
run: npm run typecheck

# test:
# name: Test
# runs-on: ubuntu-latest
# timeout-minutes: 10
# steps:
# - name: Clone repository
# uses: actions/checkout@v4

# - name: Install dependencies
# uses: ./.github/actions/install-dependencies

# - name: Run tests
# uses: nick-fields/retry@v3
# with:
# timeout_minutes: 10
# max_attempts: 3
# command: npm run test
# env:
# SOME_ENV: ${{ vars.SOME_ENV }}

# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v4
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Install dependencies
uses: ./.github/actions/install-dependencies

- name: Run tests
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 3
command: npm run test:mocha:unit
# env:
# SOME_ENV: ${{ vars.SOME_ENV }}

# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v4
# with:
# token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 86afc9c

Please sign in to comment.