Skip to content

Removed without_storage_info from messages and schema pallets (#1702) #460

Removed without_storage_info from messages and schema pallets (#1702)

Removed without_storage_info from messages and schema pallets (#1702) #460

Workflow file for this run

name: Merge PR
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
on:
push:
branches:
- main
jobs:
changes:
name: Determine Changed Files
runs-on: ubuntu-20.04
container: ghcr.io/libertydsnp/frequency/ci-base-image
outputs:
ci-base-image: ${{steps.filter.outputs.ci-base-image}}
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Check for Changed Files
uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50
id: filter
with:
filters: |
ci-base-image:
- 'tools/ci/docker/ci-base-image.dockerfile'
publish-js-api-augment-rc:
name: Merge - Publish JS API Augment Release Candidate
runs-on: [self-hosted, Linux, X64, build, v2]
container: ghcr.io/libertydsnp/frequency/ci-base-image
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Output Metadata
# Run the cargo command and ignore any extra lines outside of the json result
run: CARGO_INCREMENTAL=0 RUSTFLAGS="-D warnings" cargo run --features frequency-rococo-local -- export-metadata --chain=frequency-rococo-local --tmp ./js/api-augment/metadata.json
- name: Set up NodeJs
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
registry-url: "https://registry.npmjs.org"
cache-dependency-path: js/api-augment/package-lock.json
- name: Install
run: npm ci
working-directory: js/api-augment
- name: Build
run: npm run build
working-directory: js/api-augment
env:
FULL_SHA: ${{github.sha}}
- name: Version Package
env:
FULL_SHA: ${{github.sha}}
working-directory: js/api-augment/dist
shell: bash
run: npm version --new-version "v0.0.0-${FULL_SHA:0:6}" --no-git-tag-version
- name: Publish on NPM @next
run: npm publish --tag next --access public
working-directory: js/api-augment/dist
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
calc-code-coverage:
name: Merge - Calculate Code Coverage
# This job currently fails on EKS runners and must be run on standalone until
# https://www.pivotaltracker.com/story/show/185045668 is resolved.
runs-on: [self-hosted, Linux, X64, build, v1]
container: ghcr.io/libertydsnp/frequency/ci-base-image
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Generate and Upload Code Coverage
id: codecov
uses: ./.github/workflows/common/codecov
publish-ci-base-image:
needs: changes
if: needs.changes.outputs.ci-base-image == 'true'
name: Publish CI Base Image
env:
IMAGE_NAME: ci-base-image
BRANCH_NAME: main
runs-on: ubuntu-20.04
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: "amd64"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Sanitize repo owner slug
uses: actions/github-script@v6
id: repo_slug
with:
result-encoding: string
script: return `ghcr.io/${context.repo.owner.toLowerCase()}/${context.repo.repo.toLowerCase()}`
- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: tools/ci/docker
push: true
file: tools/ci/docker/ci-base-image.dockerfile
tags: |
${{steps.repo_slug.outputs.result}}/${{env.IMAGE_NAME}}:${{env.BRANCH_NAME}}
${{steps.repo_slug.outputs.result}}/${{env.IMAGE_NAME}}:latest