Nightly Tests #894
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nightly Tests | |
on: | |
schedule: | |
# Will run at 00:00 every day | |
- cron: "0 0 * * *" | |
jobs: | |
nightly: | |
strategy: | |
matrix: | |
go-version: [ 1.22.x ] | |
platform: [ ubuntu-latest ] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
# Checkout should always be before setup-go to ensure caching is working | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Install plugin | |
run: make install-plugin | |
- name: Build binaries | |
run: make build | |
- name: Run e2e test | |
run: go test -count 1 -v ./builder/scaleway/builder_acc_test.go -timeout=120m | |
env: | |
PACKER_ACC: 1 | |
PACKER_LOG: 1 | |
SCW_DEBUG: 1 | |
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }} | |
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }} | |
SCW_DEFAULT_ORGANIZATION_ID: ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }} | |
SCW_DEFAULT_PROJECT_ID: ${{ secrets.SCW_DEFAULT_PROJECT_ID }} | |
- name: Fetch log file | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: packer-log | |
path: ./builder/scaleway/packer_log_test-scaleway-builder-basic.txt | |
if-no-files-found: error | |
retention-days: 2 |