diff --git a/.github/workflows/devui-ci.yml b/.github/workflows/devui-ci.yml index 93f5e08..d4c3005 100644 --- a/.github/workflows/devui-ci.yml +++ b/.github/workflows/devui-ci.yml @@ -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