chore: add change log #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate | ||
| on: | ||
| workflow_call: | ||
| secrets: | ||
| jobs: | ||
| prepare: | ||
| name: Prepare | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout and setup environment | ||
| uses: MetaMask/action-checkout-and-setup@v1 | ||
| with: | ||
| is-high-risk-environment: false | ||
| - name: Install Yarn dependencies | ||
| run: yarn --immutable | ||
| build: | ||
| name: Build | ||
| runs-on: ubuntu-latest | ||
| needs: | ||
| - prepare | ||
| env: | ||
| ENVIRONMENT: production | ||
| steps: | ||
| - name: Checkout and setup environment | ||
| uses: MetaMask/action-checkout-and-setup@v1 | ||
| with: | ||
| is-high-risk-environment: false | ||
| - run: yarn --immutable --immutable-cache || yarn install | ||
| - run: | | ||
| npm rebuild --verbose sharp | ||
| yarn workspace @metamask/stellar-wallet-snap build | ||
| lint: | ||
| name: Lint | ||
| runs-on: ubuntu-latest | ||
| needs: | ||
| - prepare | ||
| steps: | ||
| - name: Checkout and setup environment | ||
| uses: MetaMask/action-checkout-and-setup@v1 | ||
| with: | ||
| is-high-risk-environment: false | ||
| - run: yarn --immutable --immutable-cache || yarn install | ||
| - run: yarn lint | ||
| - name: Require clean working directory | ||
| shell: bash | ||
| run: | | ||
| if ! git diff --exit-code; then | ||
| echo "Working tree dirty at end of job" | ||
| exit 1 | ||
| fi | ||
| test: | ||
| name: Tests | ||
| runs-on: ubuntu-latest | ||
| needs: | ||
| - prepare | ||
| env: | ||
| ENVIRONMENT: test | ||
| steps: | ||
| - name: Checkout and setup environment | ||
| uses: MetaMask/action-checkout-and-setup@v1 | ||
| with: | ||
| is-high-risk-environment: false | ||
| - run: yarn install --immutable | ||
| - name: Build for tests | ||
| run: yarn workspace @metamask/stellar-wallet-snap build | ||
| - name: Run tests | ||
| run: yarn test | ||
| - name: Upload test artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: tests-artifacts-coverage | ||
| path: packages/snap/coverage | ||