Skip to content

Commit

Permalink
Improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bokub committed Feb 22, 2024
1 parent 3b65288 commit 3ef1a15
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
Expand All @@ -22,22 +22,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- run: npm test
- run: npm run build
env:
TZ: Europe/Paris

transpile:
name: Transpile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- run: npm run build

build:
name: Build Docker images
runs-on: ubuntu-latest
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
needs:
- lint
- test
- transpile
steps:
- uses: actions/checkout@v4
- uses: home-assistant/builder@master
Expand All @@ -55,6 +66,7 @@ jobs:
needs:
- lint
- test
- transpile
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v2
Expand Down

0 comments on commit 3ef1a15

Please sign in to comment.