Skip to content

fix(action): better architecture handling in edk2 #181

fix(action): better architecture handling in edk2

fix(action): better architecture handling in edk2 #181

Workflow file for this run

---
# Test built docker images by building simple projects inside them
name: go test
on:
pull_request:
merge_group:
push:
branches:
- main
permissions:
contents: read
jobs:
go-test-resource-hogs:
# Run tests that take up a lot of system resources separately
runs-on: ubuntu-latest
strategy:
matrix:
testregex: ['TestLinux', 'TestEdk2', 'TestCoreboot']
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Taskfile
run: |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d
- name: Install go dependencies
run: |
cd action
go get -d ./...
- name: Run go test
run: |
cd action
go test -v -timeout 60m -shuffle=on -covermode=count -coverprofile coverage.out -run ${{ matrix.testregex }} ./...
go-test:
# Run all remaining light tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Taskfile
run: |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d
- name: Install go dependencies
run: |
cd action
go get -d ./...
- name: Run go test
run: |
cd action
go test -v -timeout 60m -shuffle=on -covermode=count -coverprofile coverage.out -skip '(TestLinux|TestEdk2|TestCoreboot)' ./...