Skip to content

Commit

Permalink
makefile cleanup and ci jobs update
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk committed Dec 17, 2024
1 parent cd895a6 commit 774ec0a
Show file tree
Hide file tree
Showing 19 changed files with 453 additions and 454 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Update docs
name: update docs

on:
push:
branches:
- main
paths:
- ".github/workflows/docs.yaml"
- "README.md"
- "docs/**"
- .github/workflows/docs.yaml
- README.md
- docs/**

jobs:
update-docs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
name: main
name: check / backend

on:
push:
branches:
- main
paths-ignore:
- "src/**"
- "**.md"
paths:
- '.github/workflows/pr-checks-backend.yml'
- 'go.*'
- 'vendor/**'
- 'pkg/**'
- '**/Makefile'
- '**/Dockerfile'
pull_request:
branches:
- main
paths-ignore:
- "src/**"
- "**.md"
paths:
- '.github/workflows/pr-checks-backend.yml'
- 'go.*'
- 'vendor/**'
- 'pkg/**'
- '**/Makefile'
- '**/Dockerfile'

permissions:
contents: read

Expand All @@ -25,10 +35,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Code checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.6
check-latest: true
Expand All @@ -48,40 +58,32 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Code checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.21.6
check-latest: true
cache: true

- name: run tests
run: |
make ${{ matrix.scenario}}
make ${{ matrix.scenario }}
build:
needs: test
name: build
runs-on: ubuntu-latest
steps:
- name: Code checkout
uses: actions/checkout@v3

- name: Setup Go
id: go
uses: actions/setup-go@v3
with:
go-version: 1.21.6
check-latest: true
cache: true
uses: actions/checkout@v4

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: gocache-for-docker
key: gocache-docker-${{ runner.os }}-${{ steps.go.outputs.go-version }}-${{ hashFiles('go.mod') }}

- name: Build
run: |
make victoriametrics-backend-plugin-build
make vm-backend-plugin-build
46 changes: 46 additions & 0 deletions .github/workflows/pr-checks-frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: check / frontend

on:
push:
branches: [main]
paths:
- '.github/workflow/pr-checks-frontend.yml'
- '**/*.ts'
- '**/*.tsx'
- '**/yarn.lock'
- '**/package.json'
- '**/Makefile'
- '**/Dockerfile'
pull_request:
branches: [main]
paths:
- '.github/workflow/pr-checks-frontend.yml'
- '**/*.ts'
- '**/*.tsx'
- '**/yarn.lock'
- '**/package.json'
- '**/Makefile'
- '**/Dockerfile'

jobs:
run-check:
name: check
runs-on: ubuntu-latest
strategy:
matrix:
scenario: ["make vm-frontend-plugin-build", "yarn test"]
steps:
- name: Code checkout
uses: actions/checkout@v4

- name: Set up node
uses: actions/setup-node@v4
with:
node-version: 18.13.0

- name: Install all dependencies
run: yarn install

- name: Run
run: |
${{ matrix.scenario }}
67 changes: 0 additions & 67 deletions .github/workflows/pr-checks-typescript.yml

This file was deleted.

90 changes: 0 additions & 90 deletions .github/workflows/pr-codeql-analize-golang.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/pr-codeql-analysis-typescript.yml

This file was deleted.

Loading

0 comments on commit 774ec0a

Please sign in to comment.