Skip to content

Commit

Permalink
add missing builds to CI, add js lint for modern node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
paskal committed Aug 11, 2024
1 parent 7320daf commit 4dbbdb5
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: build
name: build-publisher
on:
push:
branches:
tags:
paths:
- '.github/workflows/ci.yml'
- '.github/workflows/ci-build-publisher.yml'
- 'publisher/**'
pull_request:
paths:
- '.github/workflows/ci.yml'
- '.github/workflows/ci-build-publisher.yml'
- 'publisher/**'

jobs:
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/ci-build-site.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: build-site
on:
push:
branches:
tags:
paths-ignore:
- 'publisher/**'
- 'updater/**'
- '.github/workflows/ci-build-publisher.yml'
- '.github/workflows/ci-build-updater.yml'
- '.github/workflows/ci-frontend-check.yml'
- '.github/workflows/ci-frontend-lint.yml'
- '.github/dependabot.yml'
- '.github/FUNDING.yml'
pull_request:
paths-ignore:
- 'publisher/**'
- 'updater/**'
- '.github/workflows/ci-build-publisher.yml'
- '.github/workflows/ci-build-updater.yml'
- '.github/workflows/ci-frontend-check.yml'
- '.github/workflows/ci-frontend-lint.yml'
- '.github/dependabot.yml'
- '.github/FUNDING.yml'

jobs:
build:
name: build
runs-on: ubuntu-latest
steps:

- name: check out code
uses: actions/checkout@v4

- name: build site image
run: docker build -t radio-t/site .
25 changes: 25 additions & 0 deletions .github/workflows/ci-build-updater.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: build-updater
on:
push:
branches:
tags:
paths:
- '.github/workflows/ci-build-updater.yml'
- 'updater/**'
pull_request:
paths:
- '.github/workflows/ci-build-updater.yml'
- 'updater/**'

jobs:
build:
name: build
runs-on: ubuntu-latest
steps:

- name: check out code
uses: actions/checkout@v4

- name: build updater image
run: docker build -t radio-t/updater .
working-directory: updater
2 changes: 2 additions & 0 deletions .github/workflows/ci-frontend-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: "Check size limit for CSS and JS bundles"
on:
pull_request:
paths:
- '.github/workflows/ci-frontend-check.yml'
- "hugo/**/*.jsx?"
- "hugo/**/*.tsx?"
- "hugo/**/*.scss"
Expand All @@ -11,6 +12,7 @@ jobs:
runs-on: ubuntu-latest
env:
CI_JOB_NUMBER: 1
NODE_OPTIONS: --openssl-legacy-provider
steps:
- uses: actions/checkout@v4
- uses: andresz1/size-limit-action@v1
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci-frontend-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ on:
branches:
tags:
paths:
- '.github/workflows/ci-frontend-lint.yml'
- "hugo/**/*.jsx?"
- "hugo/**/*.tsx?"
pull_request:
paths:
- '.github/workflows/ci-frontend-lint.yml'
- "hugo/**/*.jsx?"
- "hugo/**/*.tsx?"

Expand All @@ -17,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [14.15]
node: [14, 16, 18, 20, 22]

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 4dbbdb5

Please sign in to comment.