-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI Actions, Temp manual sync from .goassets
- Loading branch information
Showing
20 changed files
with
498 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> | ||
# SPDX-License-Identifier: MIT | ||
|
||
GO_JS_WASM_EXEC=${PWD}/test-wasm/go_js_wasm_exec | ||
TEST_EXTRA_ARGS="-tags quic" | ||
GOLANGCI_LINT_EXRA_ARGS="--build-tags quic" | ||
EXCLUDED_CONTRIBUTORS=('Josh Bleecher Snyder' 'Sidney San Martín') |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> | ||
# SPDX-License-Identifier: MIT | ||
|
||
.goassets |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/sh | ||
|
||
# | ||
# DO NOT EDIT THIS FILE | ||
# | ||
# It is automatically copied from https://github.com/pion/.goassets repository. | ||
# | ||
# If you want to update the shared CI config, send a PR to | ||
# https://github.com/pion/.goassets instead of this repository. | ||
# | ||
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> | ||
# SPDX-License-Identifier: MIT | ||
|
||
set -eu | ||
|
||
SCRIPT_PATH="$(realpath "$(dirname "$0")")" | ||
GOASSETS_PATH="${SCRIPT_PATH}/.goassets" | ||
|
||
GOASSETS_REF=${GOASSETS_REF:-master} | ||
|
||
if [ -d "${GOASSETS_PATH}" ]; then | ||
if ! git -C "${GOASSETS_PATH}" diff --exit-code; then | ||
echo "${GOASSETS_PATH} has uncommitted changes" >&2 | ||
exit 1 | ||
fi | ||
git -C "${GOASSETS_PATH}" fetch origin | ||
git -C "${GOASSETS_PATH}" checkout ${GOASSETS_REF} | ||
git -C "${GOASSETS_PATH}" reset --hard origin/${GOASSETS_REF} | ||
else | ||
git clone -b ${GOASSETS_REF} https://github.com/pion/.goassets.git "${GOASSETS_PATH}" | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
|
||
# | ||
# DO NOT EDIT THIS FILE | ||
# | ||
# It is automatically copied from https://github.com/pion/.goassets repository. | ||
# | ||
# If you want to update the shared CI config, send a PR to | ||
# https://github.com/pion/.goassets instead of this repository. | ||
# | ||
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> | ||
# SPDX-License-Identifier: MIT | ||
|
||
SCRIPT_PATH="$(realpath "$(dirname "$0")")" | ||
|
||
. ${SCRIPT_PATH}/fetch-scripts.sh | ||
|
||
cp "${GOASSETS_PATH}/hooks/commit-msg.sh" "${SCRIPT_PATH}/../.git/hooks/commit-msg" | ||
cp "${GOASSETS_PATH}/hooks/pre-commit.sh" "${SCRIPT_PATH}/../.git/hooks/pre-commit" | ||
cp "${GOASSETS_PATH}/hooks/pre-push.sh" "${SCRIPT_PATH}/../.git/hooks/pre-push" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> | ||
SPDX-License-Identifier: MIT |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# | ||
# DO NOT EDIT THIS FILE | ||
# | ||
# It is automatically copied from https://github.com/pion/.goassets repository. | ||
# If this repository should have package specific CI config, | ||
# remove the repository name from .goassets/.github/workflows/assets-sync.yml. | ||
# | ||
# If you want to update the shared CI config, send a PR to | ||
# https://github.com/pion/.goassets instead of this repository. | ||
# | ||
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> | ||
# SPDX-License-Identifier: MIT | ||
|
||
name: API | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
check: | ||
uses: pion/.goassets/.github/workflows/api.reusable.yml@master |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> | ||
# SPDX-License-Identifier: MIT | ||
name: Browser E2E | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
e2e-test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: test | ||
run: | | ||
docker build -t pion-webrtc-e2e -f e2e/Dockerfile . | ||
docker run -i --rm pion-webrtc-e2e |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# | ||
# DO NOT EDIT THIS FILE | ||
# | ||
# It is automatically copied from https://github.com/pion/.goassets repository. | ||
# If this repository should have package specific CI config, | ||
# remove the repository name from .goassets/.github/workflows/assets-sync.yml. | ||
# | ||
# If you want to update the shared CI config, send a PR to | ||
# https://github.com/pion/.goassets instead of this repository. | ||
# | ||
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> | ||
# SPDX-License-Identifier: MIT | ||
|
||
name: CodeQL | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '23 5 * * 0' | ||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- '**.go' | ||
|
||
jobs: | ||
analyze: | ||
uses: pion/.goassets/.github/workflows/codeql-analysis.reusable.yml@master |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> | ||
# SPDX-License-Identifier: MIT | ||
name: Examples Tests | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
pion-to-pion-test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: test | ||
run: cd examples/pion-to-pion && ./test.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# | ||
# DO NOT EDIT THIS FILE | ||
# | ||
# It is automatically copied from https://github.com/pion/.goassets repository. | ||
# If this repository should have package specific CI config, | ||
# remove the repository name from .goassets/.github/workflows/assets-sync.yml. | ||
# | ||
# If you want to update the shared CI config, send a PR to | ||
# https://github.com/pion/.goassets instead of this repository. | ||
# | ||
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> | ||
# SPDX-License-Identifier: MIT | ||
|
||
name: Lint | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
lint: | ||
uses: pion/.goassets/.github/workflows/lint.reusable.yml@master |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# | ||
# DO NOT EDIT THIS FILE | ||
# | ||
# It is automatically copied from https://github.com/pion/.goassets repository. | ||
# If this repository should have package specific CI config, | ||
# remove the repository name from .goassets/.github/workflows/assets-sync.yml. | ||
# | ||
# If you want to update the shared CI config, send a PR to | ||
# https://github.com/pion/.goassets instead of this repository. | ||
# | ||
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> | ||
# SPDX-License-Identifier: MIT | ||
|
||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
release: | ||
uses: pion/.goassets/.github/workflows/release.reusable.yml@master | ||
with: | ||
go-version: "1.22" # auto-update/latest-go-version |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# | ||
# DO NOT EDIT THIS FILE | ||
# | ||
# It is automatically copied from https://github.com/pion/.goassets repository. | ||
# If this repository should have package specific CI config, | ||
# remove the repository name from .goassets/.github/workflows/assets-sync.yml. | ||
# | ||
# If you want to update the shared CI config, send a PR to | ||
# https://github.com/pion/.goassets instead of this repository. | ||
# | ||
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> | ||
# SPDX-License-Identifier: MIT | ||
|
||
name: Fix go.sum | ||
on: | ||
push: | ||
branches: | ||
- renovate/* | ||
|
||
jobs: | ||
fix: | ||
uses: pion/.goassets/.github/workflows/renovate-go-sum-fix.reusable.yml@master | ||
secrets: | ||
token: ${{ secrets.PIONBOT_PRIVATE_KEY }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# DO NOT EDIT THIS FILE | ||
# | ||
# It is automatically copied from https://github.com/pion/.goassets repository. | ||
# If this repository should have package specific CI config, | ||
# remove the repository name from .goassets/.github/workflows/assets-sync.yml. | ||
# | ||
# If you want to update the shared CI config, send a PR to | ||
# https://github.com/pion/.goassets instead of this repository. | ||
# | ||
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> | ||
# SPDX-License-Identifier: MIT | ||
|
||
name: REUSE Compliance Check | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
lint: | ||
uses: pion/.goassets/.github/workflows/reuse.reusable.yml@master |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> | ||
# SPDX-License-Identifier: MIT | ||
name: StandardJS | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
jobs: | ||
StandardJS: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 12.x | ||
- run: npm install standard | ||
- run: npx standard |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# | ||
# DO NOT EDIT THIS FILE | ||
# | ||
# It is automatically copied from https://github.com/pion/.goassets repository. | ||
# If this repository should have package specific CI config, | ||
# remove the repository name from .goassets/.github/workflows/assets-sync.yml. | ||
# | ||
# If you want to update the shared CI config, send a PR to | ||
# https://github.com/pion/.goassets instead of this repository. | ||
# | ||
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> | ||
# SPDX-License-Identifier: MIT | ||
|
||
name: Test | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
uses: pion/.goassets/.github/workflows/test.reusable.yml@master | ||
strategy: | ||
matrix: | ||
go: ["1.23", "1.22"] # auto-update/supported-go-version-list | ||
fail-fast: false | ||
with: | ||
go-version: ${{ matrix.go }} | ||
secrets: inherit | ||
|
||
test-i386: | ||
uses: pion/.goassets/.github/workflows/test-i386.reusable.yml@master | ||
strategy: | ||
matrix: | ||
go: ["1.23", "1.22"] # auto-update/supported-go-version-list | ||
fail-fast: false | ||
with: | ||
go-version: ${{ matrix.go }} | ||
|
||
test-wasm: | ||
uses: pion/.goassets/.github/workflows/test-wasm.reusable.yml@master | ||
with: | ||
go-version: "1.23" # auto-update/latest-go-version | ||
secrets: inherit |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# | ||
# DO NOT EDIT THIS FILE | ||
# | ||
# It is automatically copied from https://github.com/pion/.goassets repository. | ||
# If this repository should have package specific CI config, | ||
# remove the repository name from .goassets/.github/workflows/assets-sync.yml. | ||
# | ||
# If you want to update the shared CI config, send a PR to | ||
# https://github.com/pion/.goassets instead of this repository. | ||
# | ||
# SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> | ||
# SPDX-License-Identifier: MIT | ||
|
||
name: Go mod tidy | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
tidy: | ||
uses: pion/.goassets/.github/workflows/tidy-check.reusable.yml@master | ||
with: | ||
go-version: "1.22" # auto-update/latest-go-version |
Oops, something went wrong.