-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (30 loc) · 1.05 KB
/
sean-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
# SPDX-License-Identifier: MIT
name: Sean Test
on:
pull_request:
jobs:
sean-test:
runs-on: ubuntu-latest
name: Sean Test
steps:
- uses: actions/checkout@v4
- name: Build worker
run: |
docker build -t test_runner_i386:latest -<<EOF
FROM i386/golang:1.21-alpine
RUN go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest
EOF
- name: Run test
run: |
mkdir -p $HOME/go/pkg/mod $HOME/.cache
docker run \
-u $(id -u):$(id -g) \
-e "GO111MODULE=on" \
-e "CGO_ENABLED=0" \
-v $GITHUB_WORKSPACE:/go/src/github.com/pion/$(basename $GITHUB_WORKSPACE) \
-v $HOME/go/pkg/mod:/go/pkg/mod \
-v $HOME/.cache:/.cache \
-w /go/src/github.com/pion/$(basename $GITHUB_WORKSPACE) \
test_runner_i386:latest \
/bin/sh -c "/usr/local/go/bin/go test ${TEST_EXTRA_ARGS:-} -json -v ./... | gotestfmt"