Skip to content

Commit

Permalink
Merge pull request #41 from DLC-link/feat/action
Browse files Browse the repository at this point in the history
changing github actions
  • Loading branch information
Polybius93 authored Dec 19, 2023
2 parents d6fea77 + 1bcc25a commit 4fce87b
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
name: Code Checks
name: Validate PR In Merge Queue

on:
merge_group:
push:
branches:
- '**'

jobs:
lint-eslint:
Expand Down
62 changes: 62 additions & 0 deletions .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Validate PR

on:
pull_request:
branches:
- 'dev'
- 'main'

jobs:
lint-eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision

- name: Lint
run: yarn lint:eslint

lint-filename:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision

- name: File name checker
run: yarn lint:filename

lint-prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision

- name: Lint
run: yarn lint:prettier

lint-unused-exports:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision

- name: Lint unused TypeScript exports
run: yarn lint:unused-exports

typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision

- name: Typecheck
run: yarn typecheck

test-unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/provision

- name: Test
run: yarn test:unit

0 comments on commit 4fce87b

Please sign in to comment.