Skip to content

Commit

Permalink
add reusable install action
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickvBeek committed Jun 7, 2024
1 parent 6e6c358 commit 815fca2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
13 changes: 13 additions & 0 deletions .github/actions/install/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Install
description: install all dependencies
runs:
using: composite
steps:
- name: Set up node 20
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
shell: bash
run: npm ci
20 changes: 5 additions & 15 deletions .github/workflows/ci-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,11 @@ jobs:
ci-pipeline:
runs-on: ubuntu-latest
steps:
- name: checking out code
- name: Check out repository
uses: actions/checkout@v4

- name: setup node 20
uses: actions/setup-node@v4
with:
node-version: 20

- name: install deps
run: npm ci
- name: install
uses: ./.github/actions/install

- name: apply prettier
run: npm run prettier
Expand Down Expand Up @@ -61,13 +56,8 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up node 20
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm ci
- name: install
uses: ./.github/actions/install

- name: Install Playwright Browsers
run: npx playwright install ${{matrix.browser}} #<TODO: Install one of the specific browsers>
Expand Down

0 comments on commit 815fca2

Please sign in to comment.