Skip to content

fix: match releasebranch artifact name with filename #83

fix: match releasebranch artifact name with filename

fix: match releasebranch artifact name with filename #83

Workflow file for this run

# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
---
name: Test
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
name: Lint and test project
strategy:
matrix:
node: ['24', 'latest']
env:
MAIN_NODE_VER: '24'
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install node ${{ matrix.node }}
uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Enable Corepack
run: corepack enable
- name: Prepare Yarn
run: corepack prepare [email protected] --activate
- name: Prepare PNPM
run: corepack prepare pnpm@latest --activate
- name: Setup Java 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: maven
- name: setup Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
- name: get Python location
id: python-location
run: |
echo "python-bin-location=$(echo $pythonLocation)/bin" >> $GITHUB_OUTPUT
- name: setup go
uses: actions/setup-go@v5
with:
go-version: '1.20.1'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Setup syft
uses: jaxxstorm/[email protected]
with:
repo: anchore/syft
platform: linux
arch: amd64
- name: Setup skopeo
run: sudo apt update && sudo apt-get -y install skopeo
- name: Install project modules
run: npm ci
- name: Lint source files
run: npm run lint
- name: Run unit tests
env:
TRUSTIFY_DA_PYTHON3_PATH: "${{steps.python-location.outputs.python-bin-location}}/python3"
TRUSTIFY_DA_PIP3_PATH: "${{steps.python-location.outputs.python-bin-location}}/pip3"
TRUSTIFY_DA_BACKEND_URL: 'https://exhort.stage.devshift.net'
run: npm run test
- name: Compile project
run: npm run compile
- name: Upload coverage reports
if: ${{ matrix.node == env.MAIN_NODE_VER }}
uses: actions/upload-artifact@v4
with:
name: coverage
path: ./coverage/coverage-final.json