Skip to content

chore: update CODEOWNERS and fixes to CI errors #210

chore: update CODEOWNERS and fixes to CI errors

chore: update CODEOWNERS and fixes to CI errors #210

name: pull-request-main
on:
merge_group:
pull_request:
branches:
- main
- develop # TODO - Remove when develop branch is replaced by main
jobs:
ci-lint:
name: Lint
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
actions: read
steps:
- name: Linting Go
uses: smartcontractkit/.github/actions/ci-lint-go@7a4d99cb349ea8f25195d2390d157942031f8a57
with:
golangci-lint-version: v1.64.8
ci-lint-misc:
name: Lint Misc
runs-on: ubuntu-latest
steps:
- name: Linting Go Misc
uses: smartcontractkit/.github/actions/ci-lint-misc@7a4d99cb349ea8f25195d2390d157942031f8a57
ci-test:
name: Tests
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
actions: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Compute Solana programs cache key
id: solana-programs-cache-key
shell: bash
run: |
key="$(go list -m github.com/smartcontractkit/chainlink-ccip/chains/solana)"
echo "key=${key}" >> "$GITHUB_OUTPUT"
- name: Install Rust
if: steps.solana-programs-cache-key.outputs.cache-hit != 'true'
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2
- name: Install Solana
if: steps.solana-programs-cache-key.outputs.cache-hit != 'true'
uses: metaplex-foundation/actions/install-solana@2389940047edc63a5781911f6a53fbdf784748d8 # v1.0.4
with:
version: 1.18.26
- name: Cache Solana programs
uses: actions/cache@v4
id: cache-solana-programs
with:
path: ./tests/integration/solana/artifacts
key: "${{ runner.os }}-mcms-contracts-${{ steps.solana-programs-cache-key.outputs.key }}"
- name: Build Solana programs
if: steps.solana-programs-cache-key.outputs.cache-hit != 'true'
shell: bash
run: |
./tests/integration/solana/compile-timelock-programs.sh
- name: Build and test
uses: smartcontractkit/.github/actions/ci-test-go@ci-test-go/0.3.5
with:
go-test-cmd: CTF_CONFIGS=./config.toml go test -short -coverprofile=coverage.out -covermode=atomic -race ./...
checkout-repo: false
use-go-cache: true