diff --git a/.github/workflows/npm-build-branches.yml b/.github/workflows/npm-build-branches.yml new file mode 100644 index 0000000..d6eaa55 --- /dev/null +++ b/.github/workflows/npm-build-branches.yml @@ -0,0 +1,22 @@ +name: Build branch + +on: + push: + branches-ignore: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.x' + - run: npm ci + - name: Install Playwright Browsers + run: npx playwright install --with-deps + - run: npm run build --if-present + - run: npm test + diff --git a/.github/workflows/npm-build.yml b/.github/workflows/npm-build.yml new file mode 100644 index 0000000..b123aa3 --- /dev/null +++ b/.github/workflows/npm-build.yml @@ -0,0 +1,21 @@ +name: Build + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: '20.x' + - run: npm ci + - name: Install Playwright Browsers + run: npx playwright install --with-deps + - run: npm run build --if-present + - run: npm test diff --git a/README.md b/README.md index ebb6b23..bf46e34 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # GetMyDeck-App +![Build](https://github.com/chrisingenhaag/getmydeck-app/actions/workflows/gradle-build.yml/badge.svg?branch=main) + SvelteKit based web frontend for [getmydeck.ingenhaag.dev](https://getmydeck.ingenhaag.dev) ## Developing