Add upgrade test & enable init test #253
Workflow file for this run
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: End-to-End Tests | |
on: | |
pull_request: | |
branches: [trunk] | |
paths-ignore: | |
- 'docs/**' | |
- 'README.md' | |
jobs: | |
e2e-tests: | |
name: End-to-End Tests | |
runs-on: elvia-runner | |
strategy: | |
matrix: | |
command: | |
- build | |
- create | |
- github-actions | |
- init | |
- scan | |
- upgrade | |
fail-fast: false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
cache-dependency-path: 'go.sum' | |
go-version-file: 'go.mod' | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: 'ghcr.io' | |
username: ${{ github.actor }} | |
password: ${{ github.token }} | |
- name: Install CLI from source | |
run: make install | |
- name: 'Run tests for ${{ matrix.command }} command' | |
run: './tests/${{ matrix.command }}/run_tests.sh' |