Skip to content

Commit

Permalink
add github action worflow for testing and linting (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
tromai authored Nov 18, 2024
1 parent 36ae734 commit 3362921
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: build and test

on:
push:
branches:
- main
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize

permissions:
contents: read

jobs:
build:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: install dependencies
run: npm install
- name: linting
run: npm run style
- name: testing
run: npm run test
- name: compiling typescript
run: |
npm run clean
npm run build
build-docker:
permissions:
contents: read
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: build docker image
run: docker build -t ghcr.io/tromai/lemon-soda:testing -f Dockerfile ./

0 comments on commit 3362921

Please sign in to comment.