Bump brace-expansion from 1.1.11 to 1.1.12 in /sdk #438
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: CI | |
| on: | |
| pull_request: | |
| branches: | |
| - 'main' | |
| - 'dev' | |
| types: [opened, synchronize, edited] | |
| push: | |
| branches: | |
| - 'main' | |
| - 'dev' | |
| jobs: | |
| detect-changes: | |
| runs-on: ubuntu-latest | |
| env: | |
| DEV_PORTAL_TOKEN: ${{ secrets.DEV_PORTAL_TOKEN }} | |
| outputs: | |
| configs: ${{ steps.changes.outputs.configs }} | |
| node_registry: ${{ steps.changes.outputs.node-registry }} | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v3 | |
| - name: Detect Changes | |
| uses: dorny/paths-filter@v3 | |
| id: changes | |
| with: | |
| filters: | | |
| configs: | |
| - 'assets/**' | |
| node-registry: | |
| - 'contracts/NodeRegistry.sol' | |
| - name: Set Outputs as JSON | |
| if: github.ref == 'refs/heads/dev' | |
| run: | | |
| echo '{}' | jq \ | |
| --arg configs "${{ steps.changes.outputs.configs }}" \ | |
| --arg node_registry "${{ steps.changes.outputs.node-registry }}" \ | |
| '. + {configs: $configs, "node-registry": $node_registry}' \ | |
| > outputs.json | |
| - name: Upload Changes Artifact | |
| if: github.ref == 'refs/heads/dev' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: project-changes | |
| path: outputs.json | |
| verify_build: | |
| runs-on: ubuntu-latest | |
| env: | |
| DEV_PORTAL_TOKEN: ${{ secrets.DEV_PORTAL_TOKEN }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Linelint | |
| uses: fernandrone/[email protected] | |
| id: linelint | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.23.4' | |
| - name: Lint code | |
| uses: golangci/[email protected] | |
| with: | |
| version: latest | |
| install-mode: binary | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| only-new-issues: false | |
| skip-cache: false | |
| skip-save-cache: false | |
| problem-matchers: false | |
| cache-invalidation-interval: 7 | |
| args: --timeout=5m | |
| - name: Check compilation | |
| run: | | |
| make build | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| DEV_PORTAL_TOKEN: ${{ secrets.DEV_PORTAL_TOKEN }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.23.4' | |
| - name: Install node.js with npm | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: v22.11.0 | |
| - name: Verify node.js Installation | |
| run: | | |
| node --version | |
| npm --version | |
| - name: Install Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Verify Bun Installation | |
| run: bun --version | |
| - name: Install Foundry | |
| uses: foundry-rs/[email protected] | |
| - name: Verify Anvil Installation | |
| run: anvil --version | |
| - name: Start Anvil | |
| run: | | |
| make start-anvil | |
| - name: Deploy Contract | |
| run: | | |
| make deploy_contract | |
| - name: Register Nodes | |
| run: | | |
| make register_nodes | |
| - name: Install gotestsum | |
| run: go install gotest.tools/[email protected] | |
| - name: Run relayer and resolver tests | |
| run: | | |
| make testsum | |
| - name: Install dependenies | |
| run: | | |
| cd sdk/tests/browser-connection && npm i | |
| - name: Build javascript files | |
| run: | | |
| cd sdk/tests/browser-connection | |
| bun build src/call_client_script.ts --outdir ./build --sourcemap=external | |
| - name: Start relayer for SDK test | |
| run: | | |
| make run_relayer_local | |
| - name: Start resolver for SDK test | |
| run: | | |
| make run_resolver_local | |
| - name: Start test server | |
| run: | | |
| cd sdk/tests/browser-connection | |
| make start_test_server | |
| - name: Run SDK browser test | |
| run: | | |
| cd sdk/tests/browser-connection | |
| xvfb-run --auto-servernum npm test |