Remove old web workflows and add new ones

This commit is contained in:
Gabe Kangas 2022-05-11 20:39:23 -07:00
parent 8638961b59
commit b66617961d
No known key found for this signature in database
GPG key ID: 9A56337728BC81EA
9 changed files with 3 additions and 141 deletions

View file

@ -9,4 +9,4 @@ jobs:
uses: actions/checkout@v2
- name: Install dependencies
run: npm install && npm run build
run: cd web && npm install && npm run build

View file

@ -1,21 +0,0 @@
name: Bundle admin (owncast/owncast-admin)
on:
repository_dispatch:
types: [bundle-admin-event]
jobs:
bundle:
runs-on: ubuntu-latest
steps:
- name: Bundle admin
uses: actions/checkout@v3
- run: build/admin/bundleAdmin.sh
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: Owncast
author_email: owncast@owncast.online
message: "Update admin to ${{ github.event.client_payload.sha }}"
add: "static/admin"
env:
GITHUB_TOKEN: ${{ secrets.GH_CR_PAT }}

View file

@ -22,3 +22,4 @@ jobs:
uses: golangci/golangci-lint-action@v2
with:
only-new-issues: true
args: --timeout=3m

View file

@ -24,6 +24,7 @@ jobs:
with:
# This part is also where you can pass other options, for example:
prettier_options: --write webroot/**/*.{js,md}
working_directory: web
only_changed: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -1,33 +0,0 @@
name: javascript-packages
on:
push:
paths:
- build/javascript/package.json
jobs:
run:
if: ${{ github.actor != 'dependabot[bot]' }}
name: npm run build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
- name: Build dependencies
uses: actions/setup-node@v3
with:
node-version: '12'
- run: cd build/javascript && npm run build
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: Owncast
author_email: owncast@owncast.online
message: "Commit updated Javascript packages"
add: "build/javascript/package* webroot/js/web_modules"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

27
web/.github/stale.yml vendored
View file

@ -1,27 +0,0 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- backlog
# Label to use when marking an issue as stale
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
exemptMilestones: true
# Since old PRs are less useful than old issues ping them sooner.
pulls:
daysUntilStale: 30
markComment: >
This pull request has not had any activity in 30 days. Since things move fast it's best
to get PRs merged in, or to allow somebody else to work on it so the change can get in.
This PR will be closed if no further activity occurs. Thank you for your contributions!
exemptLabels:
- bot

View file

@ -1,16 +0,0 @@
name: Bundle admin into core
on:
push:
branches:
- develop
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Dispatch event to owncast/owncast
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.ADMIN_BUNDLE_PAT }}
repository: owncast/owncast
event-type: bundle-admin-event
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

View file

@ -1,18 +0,0 @@
name: linter
# This action works with pull requests and pushes
on: [push, pull_request]
jobs:
run-test:
runs-on: ubuntu-latest
name: Run linter on changed files
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: npm install
- name: Lint
run: npm run lint

View file

@ -1,25 +0,0 @@
name: javascript-formatter
on: [push]
jobs:
format:
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Prettier
uses: creyD/prettier_action@v4.2
with:
# This part is also where you can pass other options, for example:
prettier_options: --write **/*.{js,tsx,jsx,css,scss}
ref: ${{ github.head_ref }}
only_changed: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}