This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add missing build workflow (#22)
- Loading branch information
1 parent
4f2d05e
commit 6442297
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Run build | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest-16-core | ||
strategy: | ||
matrix: | ||
environment: [devnet-1, testnet-1] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up NodeJS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'npm' | ||
|
||
- name: Install npm packages | ||
run: npm ci | ||
|
||
- name: Run build | ||
run: npm run build | ||
env: | ||
VITE_ERC20_MESSAGING_CONTRACT_ADDRESS: ${{ vars.ERC20_MESSAGING_CONTRACT_ADDRESS }} | ||
VITE_SUBNET_REGISTRATOR_CONTRACT_ADDRESS: ${{ vars.SUBNET_REGISTRATOR_CONTRACT_ADDRESS }} | ||
VITE_TOPOS_CORE_PROXY_CONTRACT_ADDRESS: ${{ vars.TOPOS_CORE_PROXY_CONTRACT_ADDRESS }} | ||
VITE_TOPOS_SUBNET_ENDPOINT_REMOTE_DEFAULT: ${{ vars.TOPOS_SUBNET_ENDPOINT_REMOTE_DEFAULT }} | ||
VITE_TOPOS_SUBNET_ENDPOINT_CUSTOM_DEFAULT: ${{ vars.TOPOS_SUBNET_ENDPOINT_CUSTOM_DEFAULT }} | ||
VITE_TCE_ENDPOINT_REMOTE_DEFAULT: ${{ vars.TCE_ENDPOINT_REMOTE_DEFAULT }} | ||
VITE_TCE_ENDPOINT_CUSTOM_DEFAULT: ${{ vars.TCE_ENDPOINT_CUSTOM_DEFAULT }} |