Skip to content

Commit 82cbbc0

Browse files
committed
Update CI configs to v0.11.1
Update lint scripts and CI configs.
1 parent 6f02656 commit 82cbbc0

16 files changed

+324
-87
lines changed

Diff for: .github/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
2+
# SPDX-License-Identifier: MIT
3+
4+
.goassets

Diff for: .github/fetch-scripts.sh

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/sh
2+
3+
#
4+
# DO NOT EDIT THIS FILE
5+
#
6+
# It is automatically copied from https://github.com/pion/.goassets repository.
7+
#
8+
# If you want to update the shared CI config, send a PR to
9+
# https://github.com/pion/.goassets instead of this repository.
10+
#
11+
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
12+
# SPDX-License-Identifier: MIT
13+
14+
set -eu
15+
16+
SCRIPT_PATH="$(realpath "$(dirname "$0")")"
17+
GOASSETS_PATH="${SCRIPT_PATH}/.goassets"
18+
19+
GOASSETS_REF=${GOASSETS_REF:-master}
20+
21+
if [ -d "${GOASSETS_PATH}" ]; then
22+
if ! git -C "${GOASSETS_PATH}" diff --exit-code; then
23+
echo "${GOASSETS_PATH} has uncommitted changes" >&2
24+
exit 1
25+
fi
26+
git -C "${GOASSETS_PATH}" fetch origin
27+
git -C "${GOASSETS_PATH}" checkout ${GOASSETS_REF}
28+
git -C "${GOASSETS_PATH}" reset --hard origin/${GOASSETS_REF}
29+
else
30+
git clone -b ${GOASSETS_REF} https://github.com/pion/.goassets.git "${GOASSETS_PATH}"
31+
fi

Diff for: .github/install-hooks.sh

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/sh
2+
3+
#
4+
# DO NOT EDIT THIS FILE
5+
#
6+
# It is automatically copied from https://github.com/pion/.goassets repository.
7+
#
8+
# If you want to update the shared CI config, send a PR to
9+
# https://github.com/pion/.goassets instead of this repository.
10+
#
11+
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
12+
# SPDX-License-Identifier: MIT
13+
14+
SCRIPT_PATH="$(realpath "$(dirname "$0")")"
15+
16+
. ${SCRIPT_PATH}/fetch-scripts.sh
17+
18+
cp "${GOASSETS_PATH}/hooks/commit-msg.sh" "${SCRIPT_PATH}/../.git/hooks/commit-msg"
19+
cp "${GOASSETS_PATH}/hooks/pre-commit.sh" "${SCRIPT_PATH}/../.git/hooks/pre-commit"
20+
cp "${GOASSETS_PATH}/hooks/pre-push.sh" "${SCRIPT_PATH}/../.git/hooks/pre-push"

Diff for: .github/workflows/codeql-analysis.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#
2+
# DO NOT EDIT THIS FILE
3+
#
4+
# It is automatically copied from https://github.com/pion/.goassets repository.
5+
# If this repository should have package specific CI config,
6+
# remove the repository name from .goassets/.github/workflows/assets-sync.yml.
7+
#
8+
# If you want to update the shared CI config, send a PR to
9+
# https://github.com/pion/.goassets instead of this repository.
10+
#
11+
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
12+
# SPDX-License-Identifier: MIT
13+
14+
name: CodeQL
15+
16+
on:
17+
workflow_dispatch:
18+
schedule:
19+
- cron: '23 5 * * 0'
20+
pull_request:
21+
branches:
22+
- master
23+
paths:
24+
- '**.go'
25+
26+
jobs:
27+
analyze:
28+
uses: pion/.goassets/.github/workflows/codeql-analysis.reusable.yml@master

Diff for: .github/workflows/lint.yaml

+15-62
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,20 @@
1+
#
2+
# DO NOT EDIT THIS FILE
3+
#
4+
# It is automatically copied from https://github.com/pion/.goassets repository.
5+
# If this repository should have package specific CI config,
6+
# remove the repository name from .goassets/.github/workflows/assets-sync.yml.
7+
#
8+
# If you want to update the shared CI config, send a PR to
9+
# https://github.com/pion/.goassets instead of this repository.
10+
#
11+
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
12+
# SPDX-License-Identifier: MIT
13+
114
name: Lint
215
on:
3-
push:
4-
branches:
5-
- master
616
pull_request:
7-
branches:
8-
- master
9-
schedule:
10-
- cron: "0 0 * * 1"
11-
1217

1318
jobs:
14-
lint-commit-message:
15-
name: Metadata
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: actions/checkout@v3
19-
with:
20-
fetch-depth: 0
21-
- name: Checkout .goassets
22-
uses: actions/checkout@v3
23-
with:
24-
repository: pion/.goassets
25-
path: ${{ github.workspace }}/.github/.goassets
26-
ref: ${{ inputs.goassets-ref }}
27-
28-
- name: Commit Message
29-
run: .github/.goassets/scripts/lint-commit-message.sh
30-
31-
- name: File names
32-
run: .github/.goassets/scripts/lint-filename.sh
33-
34-
- name: Logging messages should not have trailing newlines
35-
run: .github/.goassets/scripts/lint-no-trailing-newline-in-log-messages.sh
36-
37-
- name: Go version in go.mod
38-
run: .github/.goassets/scripts/lint-go-mod-version.sh
39-
40-
lint-go:
41-
name: Go
42-
runs-on: ubuntu-latest
43-
permissions:
44-
contents: read
45-
pull-requests: read
46-
steps:
47-
- uses: actions/checkout@v3
48-
49-
- uses: actions/setup-go@v4
50-
with:
51-
go-version: 'stable'
52-
53-
- name: Update packages
54-
run: sudo apt-get update
55-
56-
- name: Install GStreamer
57-
run: |
58-
sudo apt-get purge -y libunwind-14-dev
59-
sudo apt-get install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
60-
61-
- name: Build data-channels
62-
run: cd c-data-channels && make
63-
64-
- name: golangci-lint
65-
uses: golangci/golangci-lint-action@v3
66-
with:
67-
version: v1.52.2
19+
lint:
20+
uses: pion/.goassets/.github/workflows/lint.reusable.yml@master

Diff for: .github/workflows/release.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#
2+
# DO NOT EDIT THIS FILE
3+
#
4+
# It is automatically copied from https://github.com/pion/.goassets repository.
5+
# If this repository should have package specific CI config,
6+
# remove the repository name from .goassets/.github/workflows/assets-sync.yml.
7+
#
8+
# If you want to update the shared CI config, send a PR to
9+
# https://github.com/pion/.goassets instead of this repository.
10+
#
11+
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
12+
# SPDX-License-Identifier: MIT
13+
14+
name: Release
15+
on:
16+
push:
17+
tags:
18+
- 'v*'
19+
20+
jobs:
21+
release:
22+
uses: pion/.goassets/.github/workflows/release.reusable.yml@master
23+
with:
24+
go-version: '1.20' # auto-update/latest-go-version

Diff for: .github/workflows/renovate-go-sum-fix.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#
2+
# DO NOT EDIT THIS FILE
3+
#
4+
# It is automatically copied from https://github.com/pion/.goassets repository.
5+
# If this repository should have package specific CI config,
6+
# remove the repository name from .goassets/.github/workflows/assets-sync.yml.
7+
#
8+
# If you want to update the shared CI config, send a PR to
9+
# https://github.com/pion/.goassets instead of this repository.
10+
#
11+
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
12+
# SPDX-License-Identifier: MIT
13+
14+
name: Fix go.sum
15+
on:
16+
push:
17+
branches:
18+
- renovate/*
19+
20+
jobs:
21+
fix:
22+
uses: pion/.goassets/.github/workflows/renovate-go-sum-fix.reusable.yml@master
23+
secrets:
24+
token: ${{ secrets.PIONBOT_PRIVATE_KEY }}

Diff for: .github/workflows/reuse.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# DO NOT EDIT THIS FILE
3+
#
4+
# It is automatically copied from https://github.com/pion/.goassets repository.
5+
# If this repository should have package specific CI config,
6+
# remove the repository name from .goassets/.github/workflows/assets-sync.yml.
7+
#
8+
# If you want to update the shared CI config, send a PR to
9+
# https://github.com/pion/.goassets instead of this repository.
10+
#
11+
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
12+
# SPDX-License-Identifier: MIT
13+
14+
name: REUSE Compliance Check
15+
16+
on:
17+
push:
18+
pull_request:
19+
20+
jobs:
21+
lint:
22+
uses: pion/.goassets/.github/workflows/reuse.reusable.yml@master

Diff for: .github/workflows/test.yaml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#
2+
# DO NOT EDIT THIS FILE
3+
#
4+
# It is automatically copied from https://github.com/pion/.goassets repository.
5+
# If this repository should have package specific CI config,
6+
# remove the repository name from .goassets/.github/workflows/assets-sync.yml.
7+
#
8+
# If you want to update the shared CI config, send a PR to
9+
# https://github.com/pion/.goassets instead of this repository.
10+
#
11+
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
12+
# SPDX-License-Identifier: MIT
13+
14+
name: Test
15+
on:
16+
push:
17+
branches:
18+
- master
19+
pull_request:
20+
21+
jobs:
22+
test:
23+
uses: pion/.goassets/.github/workflows/test.reusable.yml@master
24+
strategy:
25+
matrix:
26+
go: ['1.20', '1.19'] # auto-update/supported-go-version-list
27+
fail-fast: false
28+
with:
29+
go-version: ${{ matrix.go }}
30+
31+
test-i386:
32+
uses: pion/.goassets/.github/workflows/test-i386.reusable.yml@master
33+
strategy:
34+
matrix:
35+
go: ['1.20', '1.19'] # auto-update/supported-go-version-list
36+
fail-fast: false
37+
with:
38+
go-version: ${{ matrix.go }}
39+
40+
test-wasm:
41+
uses: pion/.goassets/.github/workflows/test-wasm.reusable.yml@master
42+
with:
43+
go-version: '1.20' # auto-update/latest-go-version

Diff for: .github/workflows/tidy-check.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#
2+
# DO NOT EDIT THIS FILE
3+
#
4+
# It is automatically copied from https://github.com/pion/.goassets repository.
5+
# If this repository should have package specific CI config,
6+
# remove the repository name from .goassets/.github/workflows/assets-sync.yml.
7+
#
8+
# If you want to update the shared CI config, send a PR to
9+
# https://github.com/pion/.goassets instead of this repository.
10+
#
11+
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
12+
# SPDX-License-Identifier: MIT
13+
14+
name: Go mod tidy
15+
on:
16+
pull_request:
17+
push:
18+
branches:
19+
- master
20+
21+
jobs:
22+
tidy:
23+
uses: pion/.goassets/.github/workflows/tidy-check.reusable.yml@master
24+
with:
25+
go-version: '1.20' # auto-update/latest-go-version

Diff for: .gitignore

+26-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
1-
sfu-ws/cert.pem
2-
sfu-ws/key.pem
1+
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
2+
# SPDX-License-Identifier: MIT
33

4-
*.ogg
4+
### JetBrains IDE ###
5+
#####################
6+
.idea/
7+
8+
### Emacs Temporary Files ###
9+
#############################
10+
*~
11+
12+
### Folders ###
13+
###############
14+
bin/
15+
vendor/
16+
node_modules/
17+
18+
### Files ###
19+
#############
520
*.ivf
6-
*.h264
21+
*.ogg
22+
tags
23+
cover.out
24+
*.sw[poe]
25+
*.wasm
26+
examples/sfu-ws/cert.pem
27+
examples/sfu-ws/key.pem
28+
wasm_exec.js

0 commit comments

Comments
 (0)