Skip to content

Commit

Permalink
Merge pull request #23 from ReflectionsProjections/dev/alex/build-wor…
Browse files Browse the repository at this point in the history
…kflow

github workflows
  • Loading branch information
aletya authored Apr 16, 2024
2 parents ae64510 + b0199d6 commit 427eb85
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 17 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
name: Prettier on Push and PR
name: Build

on:
push:
branches:
- "main"
- "dev**"
pull_request:
branches:
- "main"

jobs:
prettier:
build:
runs-on: ubuntu-latest

steps:
Expand All @@ -20,5 +14,5 @@ jobs:
node-version: "18.x"
- name: Install dependencies
run: yarn
- name: Run Prettier
run: npx prettier --write .
- name: Build
run: yarn build
8 changes: 1 addition & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
name: Lint on Push and PR
name: Lint

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

jobs:
lint:
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Prettier

on:
push:

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18.x"
- name: Install dependencies
run: yarn
- name: Run Prettier
run: npx prettier --write .

0 comments on commit 427eb85

Please sign in to comment.