Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update github actions versions #3345

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
This CODEOWNERS file is valid.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@raviteja83
@KaustubhKumar05
@amar-1995
@hdz-666
@ygit
76 changes: 76 additions & 0 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to make participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behaviour that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behaviour by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behaviour and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behaviour.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviours that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing or otherwise unacceptable behaviour may be
reported by contacting the 100ms team. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality concerning the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
<https://www.contributor-covenant.org/faq>
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -30,5 +30,4 @@ body:
- Firefox
- Chrome
- Safari
- Microsoft Edge

- Microsoft Edge
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: 📃 100ms Documentation
url: https://www.100ms.live/docs
about: Explore the 100ms capabilities with our Popular Guides, Demos & Blogs on 100ms Documentation page
- name: 💫 Register on 100ms Dashboard
url: https://dashboard.100ms.live/register
about: Try the gold-standard for adding live audio-video to your apps for free.
- name: 🗣️ Talk to us
url: https://www.100ms.live/contact
about: Get in touch with the 100ms team today! We are committed to helping our customers maximize the potential of our cutting-edge live video platform. Whether you need advice on how to leverage live streaming for your business, pricing information, or want to learn more about the 100ms platform, our team is here to answer all your questions and provide tailored solutions to meet your unique needs.
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -13,5 +13,4 @@ body:
label: What's the feature?
description: Describe the feature, who it would help, and link to any examples from other apps.
validations:
required: true

required: true
24 changes: 21 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
### Details(context, link the issue, how was the bug fixed, what does the new feature do)
# Description

_Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots._

_List which issues are fixed by this PR. You must list at least one issue._

---

## Implementation note, gotchas, related work and Future TODOs (optional)

<!-- Add any other context or additional information about the pull request.-->

-
-

### Implementation note, gotchas, related work and Future TODOs (optional)
### Pre-launch Checklist

- [ ] The [Documentation] is updated accordingly, or this PR doesn't require it.
- [ ] I updated/added relevant documentation.
- [ ] I listed at least one issue that this PR fixes in the description above.
- [ ] I added new tests to check the change I am making, or this PR is test-exempt.
- [ ] All existing and new tests are passing.

### Merging:
- Squash merge to dev
- Merge commit to publish-alpha and main

<!-- Links -->

[Documentation]: https://www.100ms.live/docs
8 changes: 3 additions & 5 deletions .github/workflows/alpha-release.yml
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ jobs:
bump_versions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

@@ -41,10 +41,8 @@ jobs:
needs: bump_versions
steps:
- name: Trigger Publish Packages workflow
uses: aurelien-baudet/workflow-dispatch@v2.1.1
uses: aurelien-baudet/workflow-dispatch@v4.0.0
with:
workflow: publish.yml
token: ${{ secrets.GITHUB_TOKEN }}
inputs: '{ "publishFlag": "alpha" }'


inputs: '{ "publishFlag": "alpha" }'
6 changes: 3 additions & 3 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create release PR
name: Create Release PR
on:
workflow_dispatch:
inputs:
@@ -19,7 +19,7 @@ jobs:
if: github.event.inputs.versionBump != 'prerelease' && github.ref != 'refs/heads/dev'
run: exit 1

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

@@ -48,7 +48,7 @@ jobs:
echo $STORE_VERSION
echo "::set-output name=store_version::$(echo $STORE_VERSION)"

- uses: peter-evans/create-pull-request@v4
- uses: peter-evans/create-pull-request@v7
with:
commit-message: 'ci: update versions for release'
title: 'ci: update versions for release'
4 changes: 2 additions & 2 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -8,8 +8,8 @@ jobs:
runs-on: ubuntu-latest
if: github.event.pull_request.draft != true
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
34 changes: 34 additions & 0 deletions .github/workflows/firstinteraction.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: first-interaction

on:
workflow_dispatch: {}
issues:
types: [opened]
pull_request:
branches:
- main
- develop
types: [opened]

jobs:
check_for_first_interaction:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/first-interaction@main
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: |
Hello! Thank you for filing an issue.

Please include relevant logs or detailed description for faster resolutions.

We really appreciate your contribution!
pr-message: |
Hello! Thank you for your contribution.

If you are fixing a bug, please reference the issue number in the description.

If you are implementing a feature request, please check with the maintainers that the feature will be accepted first.

We really appreciate your contribution!
12 changes: 6 additions & 6 deletions .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
@@ -3,18 +3,18 @@ on:
workflow_dispatch:
workflow_call:
secrets:
DOCKER_GIT_TOKEN:
DOCKER_GIT_TOKEN:
required: true

jobs:
generate_api_reference:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
@@ -34,7 +34,7 @@ jobs:
run: yarn docs

- name: checkout 100ms-docs
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
token: ${{ secrets.DOCKER_GIT_TOKEN }}
repository: 100mslive/100ms-docs
@@ -52,9 +52,9 @@ jobs:
rm -r v2
mv docs v2
mv react/docs v2/react-hooks

- name: Create PR
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v7
with:
path: 100ms-docs
token: ${{ secrets.DOCKER_GIT_TOKEN }}
8 changes: 4 additions & 4 deletions .github/workflows/lint-test-build.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: Lint, Test and Build
on:
on:
push:
merge_group:
types: [checks_requested]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -17,8 +17,8 @@ jobs:
publish_packages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
@@ -30,7 +30,7 @@ jobs:
- name: Notify slack starting
if: github.event.inputs.publishFlag == 'latest' && success()
id: slack # IMPORTANT: reference this step ID value in future Slack steps
env:
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_DEPLOY_BOT_TOKEN }}
uses: voxmedia/github-action-slack-notify-build@v1
with:
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
- uses: actions/stale@v9
with:
stale-issue-message: "This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days."
stale-pr-message: "This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days."
2 changes: 1 addition & 1 deletion .github/workflows/sync-alpha-to-main.yml
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ jobs:
pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: pull-request
uses: repo-sync/pull-request@v2
if: github.event.pull_request.merged == true