Skip to content

chore: add change log #2

chore: add change log

chore: add change log #2

Workflow file for this run

name: Validate

Check failure on line 1 in .github/workflows/build-lint-test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-lint-test.yml

Invalid workflow file

(Line: 5, Col: 13): Unexpected value ''
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