restructure workflows to use the devcontainer as well
This commit is contained in:
@@ -12,7 +12,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
concurrency: gitpush
|
concurrency: gitpush
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/truecharts/truecharts-release:v1.3.0
|
image: image: ghcr.io/truecharts/devcontainer:v2.0.0
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@@ -28,11 +28,6 @@ jobs:
|
|||||||
token: ${{ secrets.BOT_TOKEN }}
|
token: ${{ secrets.BOT_TOKEN }}
|
||||||
path: catalog
|
path: catalog
|
||||||
|
|
||||||
- name: Install Helm
|
|
||||||
uses: azure/setup-helm@v1
|
|
||||||
with:
|
|
||||||
version: v3.5.3
|
|
||||||
|
|
||||||
- name: build-and-run
|
- name: build-and-run
|
||||||
run: |
|
run: |
|
||||||
tools/build-release.sh -p --config .github/cr.yaml
|
tools/build-release.sh -p --config .github/cr.yaml
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ jobs:
|
|||||||
if: ${{ needs.changes.outputs.empty_matrix == 'false' }}
|
if: ${{ needs.changes.outputs.empty_matrix == 'false' }}
|
||||||
name: App Tests
|
name: App Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: ghcr.io/truecharts/devcontainer:v2.0.0
|
||||||
strategy:
|
strategy:
|
||||||
matrix: ${{ fromJson(needs.changes.outputs.matrix) }}
|
matrix: ${{ fromJson(needs.changes.outputs.matrix) }}
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
@@ -93,46 +95,24 @@ jobs:
|
|||||||
echo "::set-output name=unittests::false"
|
echo "::set-output name=unittests::false"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Install Helm
|
|
||||||
if: ${{ matrix.app != '.gitkee' }}
|
|
||||||
uses: azure/setup-helm@v1
|
|
||||||
with:
|
|
||||||
version: v3.5.3
|
|
||||||
|
|
||||||
- name: update helm repo cache
|
- name: update helm repo cache
|
||||||
run: |
|
run: |
|
||||||
helm repo add truecharts https://truecharts.org
|
helm repo add truecharts https://truecharts.org
|
||||||
helm repo add bitnami https://charts.bitnami.com/bitnami
|
helm repo add bitnami https://charts.bitnami.com/bitnami
|
||||||
helm repo update
|
helm repo update
|
||||||
|
|
||||||
- uses: actions/setup-python@v2
|
|
||||||
if: ${{ matrix.app != '.gitkee' }}
|
|
||||||
with:
|
|
||||||
python-version: 3.7
|
|
||||||
|
|
||||||
- name: Set up chart-testing
|
- name: Set up chart-testing
|
||||||
if: ${{ matrix.app != '.gitkee' }}
|
if: ${{ matrix.app != '.gitkee' }}
|
||||||
uses: helm/chart-testing-action@v2.1.0
|
uses: helm/chart-testing-action@v2.1.0
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
|
||||||
if: ${{ steps.prep-lint.outputs.unittests == 'true' }}
|
|
||||||
with:
|
|
||||||
go-version: '^1.16'
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# Unit-Test section
|
# Unit-Test section
|
||||||
##
|
##
|
||||||
|
|
||||||
- name: Install Ruby for unittests
|
|
||||||
if: ${{ matrix.app == 'common' && matrix.app != '.gitkee' }}
|
|
||||||
uses: ruby/setup-ruby@v1
|
|
||||||
with:
|
|
||||||
ruby-version: 2.7
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: ${{ matrix.app == 'common' && matrix.app != '.gitkee' }}
|
if: ${{ matrix.app == 'common' && matrix.app != '.gitkee' }}
|
||||||
run: |
|
run: |
|
||||||
export RUBYJQ_USE_SYSTEM_LIBRARIES=1
|
|
||||||
bundle install
|
bundle install
|
||||||
|
|
||||||
- name: Run common unit tests
|
- name: Run common unit tests
|
||||||
@@ -171,7 +151,7 @@ jobs:
|
|||||||
release-test:
|
release-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/truecharts/truecharts-release:v1.3.0
|
image: ghcr.io/truecharts/devcontainer:v2.0.0
|
||||||
steps:
|
steps:
|
||||||
- name: Cache helm repo cache
|
- name: Cache helm repo cache
|
||||||
id: cache
|
id: cache
|
||||||
@@ -193,11 +173,6 @@ jobs:
|
|||||||
repository: truecharts/catalog
|
repository: truecharts/catalog
|
||||||
path: catalog
|
path: catalog
|
||||||
|
|
||||||
- name: Install Helm
|
|
||||||
uses: azure/setup-helm@v1
|
|
||||||
with:
|
|
||||||
version: v3.5.3
|
|
||||||
|
|
||||||
- name: build-and-run
|
- name: build-and-run
|
||||||
run: |
|
run: |
|
||||||
tools/build-release.sh --config .github/cr.yaml
|
tools/build-release.sh --config .github/cr.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user