Skip to content

Commit

Permalink
fix: custom action
Browse files Browse the repository at this point in the history
  • Loading branch information
mauroerta committed May 30, 2022
1 parent fba8110 commit 5c2e095
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 26 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/bootstrap-morfeo-action.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/bootstrap-morfeo/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Bootstrap Morfeo

description: Common action in all the Morfeo workflows, it checkout and bootstrap all the packages

runs:
using: "composite"

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'

- name: Install yarn
run: npm install -g yarn
shell: bash

- name: Bootstrap
run: yarn reset:packages
shell: bash
2 changes: 1 addition & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: ./.github/workflows/bootstrap-morfeo-action
- uses: ./.github/workflows/bootstrap-morfeo

- name: Bootstrap Docs
run: yarn bootstrap:docs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-web-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: ./.github/workflows/bootstrap-morfeo-action
- uses: ./.github/workflows/bootstrap-morfeo

- name: Bootstrap Web Extension
run: yarn bootstrap:web-extension
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: ./.github/workflows/bootstrap-morfeo-action
- uses: ./.github/workflows/bootstrap-morfeo

- name: Run tests
run: yarn test:ci
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-web-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
contents: read
packages: write
steps:
- uses: ./.github/workflows/bootstrap-morfeo-action
- uses: ./.github/workflows/bootstrap-morfeo

- name: Bootstrap Web Extension
run: yarn bootstrap:web-extension
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/bootstrap-morfeo-action
- uses: ./.github/workflows/bootstrap-morfeo

# TODO: Verify if this step is still needed
- name: Assume unchanged for changed files
Expand Down

0 comments on commit 5c2e095

Please sign in to comment.