sbv2-solana/.github/workflows/test-deploy.yml

37 lines
912 B
YAML

name: Test deployment
on:
pull_request:
branches: [main]
paths:
[
website/**,
".github/workflows/*",
"idl/**",
"libraries/sbv2-lite/src/**",
"libraries/sbv2-utils/src/**",
"libraries/ts/src/**",
"cli/src/**",
]
jobs:
test-deploy:
name: Test deployment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
cache: yarn
cache-dependency-path: "yarn.lock"
- name: Setup npmrc
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_AUTH_TOKEN}}" > .npmrc
- name: Setup yarnrc
run: echo "registry \"https://registry.npmjs.org\"" > .yarnrc
- name: Test build
run: |
yarn install --frozen-lockfile
yarn workspaces run build
yarn docs:build