Skip to content

Commit

Permalink
update ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
mmv08 committed May 14, 2021
1 parent 9b78f14 commit 89fdcd4
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/devui-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,38 +22,38 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: |
yarn global add lerna
# approach taken from https://github.com/actions/setup-node/issues/85
echo "$(yarn global bin)" >> $GITHUB_PATH
- run: lerna bootstrap
- run: lerna run test --scope @gnosis.pm/safe-apps-developer-ui
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn
- run: yarn test

build:
runs-on: ubuntu-latest
deploy:
name: Deploy
needs: [test]
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: lerna bootstrap
- run: lerna run build --scope @gnosis.pm/safe-apps-developer-ui

deploy:
name: Deploy
needs: [build]
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Download website
uses: actions/download-artifact@v2
- uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn
- run: yarn build

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down

0 comments on commit 89fdcd4

Please sign in to comment.