chore: extend test-self-hosted with steps from main
@@ -9,10 +9,27 @@ jobs:
build:
runs-on: self-hosted
steps:
- - uses: actions/checkout@v2
-
- - name: Build
- run: make
-
- - name: Test
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Get all git tags
+ run: git fetch --prune --unshallow --tags
+ - name: Lint Carrier
+ run: make lint
+ - name: Cache Tools
+ uses: actions/cache@v2
+ with:
+ path: ${{ github.workspace }}/tools
+ key: ${{ runner.os }}-tools
+ - name: Install Tools
+ run: make tools-install
+ - name: Add Tools to PATH
+ run: |
+ echo "`pwd`/output/bin" >> $GITHUB_PATH
+ - name: Run unit tests
run: make test
+ - name: Acceptance tests
+ env:
+ REGISTRY_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
+ REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
+ run: |
+ make test-acceptance
