Skip to content

Add GH actions workflow #3

Add GH actions workflow

Add GH actions workflow #3

Workflow file for this run

name: babylonchain/babylon-contract/wasm-tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
AWS_ACCESS_KEY_ID: xxxxYKF5
AWS_REGION: xxxxst-1
AWS_SECRET_ACCESS_KEY: xxxxmvcn
S3_BUCKET_PREFIX: xxxxract
jobs:
wasm-build-check-integration:
runs-on: ubuntu-latest
container:
image: rust:1.78.0
steps:
- uses: actions/[email protected]
- name: Build optimised Wasm binaries
run: "./scripts/build-optimizer-ci.sh"
- name: Install cosmwasm-check
run: cargo install --locked --debug --version ^2.0 cosmwasm-check
- name: Check the Wasm binaries' validity
run: cosmwasm-check /home/circleci/project/artifacts/*.wasm
- name: Integration tests based on CosmWasm
run: cargo test --test integration
- uses: actions/[email protected]
with:
path: |-
./artifacts/babylon_contract.wasm
./artifacts/btc_staking.wasm
push-to-s3:
runs-on: ubuntu-latest
needs:
- wasm-build-check-integration
steps:
- uses: actions/[email protected]
with:
path: "/tmp"
- uses: aws-actions/[email protected]
with:
aws-region: "${{ env.$AWS_REGION }}"

Check failure on line 43 in .github/workflows/wasm-tests.yml

View workflow run for this annotation

GitHub Actions / babylonchain/babylon-contract/wasm-tests

Invalid workflow file

The workflow is not valid. .github/workflows/wasm-tests.yml (Line: 43, Col: 21): Unexpected symbol: '$AWS_REGION'. Located at position 5 within expression: env.$AWS_REGION
aws-access-key-id: "${{ secrets.AWS_ACCESS_KEY_ID }}"
aws-secret-access-key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
- uses: aws-actions/[email protected]
with:
aws-region: "${{ env.AWS_DEFAULT_REGION }}"
aws-access-key-id: "${{ secrets.AWS_ACCESS_KEY_ID }}"
aws-secret-access-key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
- run: aws s3 cp /tmp/babylon_contract.wasm $S3_BUCKET_PREFIX/${{ github.repository }}-${{ github.sha }}.wasm