Skip to content

feature: Add relationship between core entities to make it persistable in database #632

feature: Add relationship between core entities to make it persistable in database

feature: Add relationship between core entities to make it persistable in database #632

Workflow file for this run

name: Build and Test
on:
push:
branches:
- main
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23.5'
- name: Check out code
uses: actions/checkout@v3
- name: Get dependencies
run: |
cd sourcecode-parser
go mod download
- name: Test
run: |
cd sourcecode-parser
go test -p 2 -v ./... -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
golangci:
name: lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: sourcecode-parser
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23.5'
- name: golangci-lint
uses: golangci/golangci-lint-action@v7.0.0
with:
version: latest
working-directory: sourcecode-parser