Remove JIRA template and unused workflow (#1) #3
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
| # Copyright 2025 Circle Internet Group, Inc. All rights reserved. | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| name: Continuous Integration | |
| on: | |
| pull_request: | |
| push: | |
| branches: [master] | |
| jobs: | |
| contracts_test: | |
| name: Contracts Lint and Test | |
| runs-on: large-spot | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential curl git | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| echo >> /home/runner/.bashrc | |
| echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/runner/.bashrc | |
| eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | |
| brew install asdf | |
| . /home/linuxbrew/.linuxbrew/opt/asdf/libexec/asdf.sh | |
| asdf plugin add scarb | |
| asdf plugin add starknet-devnet | |
| asdf plugin add starknet-foundry | |
| asdf plugin add cairo-coverage | |
| asdf install | |
| curl -L https://raw.githubusercontent.com/software-mansion/universal-sierra-compiler/master/scripts/install.sh | sh | |
| # Add asdf binary and shims to PATH for all subsequent steps | |
| echo "/home/linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH | |
| echo "$HOME/.asdf/shims" >> $GITHUB_PATH | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| - name: Cairo Format | |
| run: scarb fmt --check --workspace | |
| - name: Cairo Lint | |
| run: scarb lint --workspace | |
| - name: Cairo Build | |
| run: scarb build --workspace | |
| - name: Run contracts tests | |
| run: snforge test --workspace | |
| e2e_test: | |
| name: E2E Lint and Test | |
| runs-on: large-spot | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| ssh-key: ${{ env._OPS_UTILITIES_GITHUB_ACTIONS_BOT_SSH_PRIV_KEY }} | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential curl git | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| echo >> /home/runner/.bashrc | |
| echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/runner/.bashrc | |
| eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | |
| brew install asdf | |
| . /home/linuxbrew/.linuxbrew/opt/asdf/libexec/asdf.sh | |
| asdf plugin add scarb | |
| asdf plugin add starknet-devnet | |
| asdf plugin add starknet-foundry | |
| asdf plugin add cairo-coverage | |
| asdf install | |
| curl -L https://raw.githubusercontent.com/software-mansion/universal-sierra-compiler/master/scripts/install.sh | sh | |
| # Add asdf binary and shims to PATH for all subsequent steps | |
| echo "/home/linuxbrew/.linuxbrew/bin" >> $GITHUB_PATH | |
| echo "$HOME/.asdf/shims" >> $GITHUB_PATH | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Enable Corepack and install dependencies | |
| run: | | |
| corepack enable | |
| yarn install --frozen-lockfile | |
| - name: Build E2E Test | |
| run: yarn build | |
| - name: Lint E2E Test | |
| run: yarn lint | |
| - name: Run E2E tests | |
| run: yarn test:e2e | |
| scan: | |
| if: github.event_name == 'pull_request' | |
| uses: circlefin/circle-public-github-workflows/.github/workflows/pr-scan.yaml@v1 | |
| release-sbom: | |
| needs: [contracts_test, e2e_test] | |
| if: github.event_name == 'push' | |
| uses: circlefin/circle-public-github-workflows/.github/workflows/attach-release-assets.yaml@v1 |