Skip to content

Commit

Permalink
Monorepo related changes to testflinger-server .github dir
Browse files Browse the repository at this point in the history
  • Loading branch information
plars committed Oct 17, 2023
1 parent 47900ac commit 594e83b
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
pull_request:
branches:
- main
paths:
- testflinger-server/**

jobs:
build:
Expand All @@ -17,6 +19,6 @@ jobs:
- name: Check libraries
uses: canonical/charming-actions/check-libraries@2.4.0
with:
charm-path: charm
charm-path: testflinger-server/charm
credentials: "${{ secrets.CHARMHUB_TOKEN }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
paths:
- testflinger-server/**

jobs:
build:
Expand All @@ -17,7 +19,7 @@ jobs:
- name: Upload charm to charmhub
uses: canonical/charming-actions/upload-charm@2.4.0
with:
charm-path: charm
charm-path: testflinger-server/charm
credentials: "${{ secrets.CHARMHUB_TOKEN }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
upload-image: "true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
branches: ["main"]
tags: ["v*.*.*"]
paths:
- testflinger-server/**

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -37,7 +39,7 @@ jobs:
- name: Build and push backend Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
context: ./testflinger-server
file: Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@ name: Run unit tests
on:
push:
branches: [ main ]
paths:
- testflinger-server/**
pull_request:
branches: [ main ]
paths:
- testflinger-server/**

jobs:
build:
defaults:
run:
working-directory: testflinger-server
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down

0 comments on commit 594e83b

Please sign in to comment.