Skip to content

CI: Add latest tag for built image in release workflow #3982

CI: Add latest tag for built image in release workflow

CI: Add latest tag for built image in release workflow #3982

Workflow file for this run

name: Tests - JellyfishSDK
on:
workflow_dispatch:
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
env:
BUILD_VERSION: latest # Computed
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: JellyfishSDK/jellyfish
ref: 'main'
- uses: actions/checkout@v4
with:
path: defichain
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Populate environment
run: cd defichain && GIT_VERSION=1 ./make.sh ci-export-vars
- name: Build and setup
run: "cd defichain && docker build -t test-build-container
-f ./contrib/dockerfiles/x86_64-pc-linux-gnu.dockerfile ."
- name: Run tests
run: |
npm ci
npm run compile
DEFICHAIN_DOCKER_IMAGE=test-build-container npm run ci:test -- --testTimeout=600000