Skip to content

Commit

Permalink
ci: update workflows and config
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinBol committed Aug 15, 2024
1 parent 495ac91 commit b435a76
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version-file: '.nvmrc'

- run: npm ci
- run: npm run build --if-present
8 changes: 8 additions & 0 deletions .github/workflows/homey-app-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Publish Homey App
on:
workflow_dispatch:

jobs:
main:
uses: athombv/athom-github-workflow/.github/workflows/homey-app-publish.yml@master
secrets: inherit
12 changes: 12 additions & 0 deletions .github/workflows/homey-app-validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Validate Homey App
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
main:
uses: athombv/athom-github-workflow/.github/workflows/homey-app-validate.yml@master
secrets: inherit
26 changes: 26 additions & 0 deletions .github/workflows/homey-app-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Update Homey App Version

on:
workflow_dispatch:
inputs:
version:
type: choice
description: Version
required: true
default: patch
options:
- major
- minor
- patch
changelog:
type: string
description: Changelog
required: true

jobs:
main:
uses: athombv/athom-github-workflow/.github/workflows/homey-app-version.yml@master
secrets: inherit
with:
version: ${{ github.event.inputs.version }}
changelog: ${{ github.event.inputs.changelog }}
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version-file: '.nvmrc'

- run: npm ci
- run: npm run lint
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version-file: '.nvmrc'
- run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Create release
run: gh release create ${{ env.RELEASE_VERSION }} -t ${{ env.RELEASE_VERSION }} --notes "" --generate-notes
- run: gh release create ${{ env.RELEASE_VERSION }} -t ${{ env.RELEASE_VERSION }} --notes "" --generate-notes
env:
GH_TOKEN: ${{ github.token }}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
2 changes: 1 addition & 1 deletion env.example.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"DEBUG_LOGGING": "epo*"
"DEBUG_LOGGING": "epo*,-epo:entity,epl*,-epl:entity"
}

0 comments on commit b435a76

Please sign in to comment.