Skip to content

Commit

Permalink
Add github build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaHydrae committed Nov 10, 2024
1 parent 8ba6492 commit e63095a
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: build

on:
push:
branches:
- '**/*'
workflow_dispatch:

jobs:
build:
name: build
runs-on: ubuntu-24.04
steps:
# https://github.com/actions/checkout
- name: Checkout the repository
uses: actions/checkout@v4

# https://github.com/actions/setup-node
- uses: actions/setup-node@v4
with:
node-version-file: .tool-versions
cache: npm

- name: Install dependencies
run: |
npm ci
- name: Check source code formatting
run: |
npm run format
- name: Ensure there are no uncommitted changes
run: |
git status --porcelain
test -z "$(git status --porcelain)"
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Backend for The Revolutionary Product, a multi-component web application to
illustrate [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing)
and [reverse proxying](https://en.wikipedia.org/wiki/Reverse_proxy).

[![build](https://github.com/MediaComem/revprod-backend/actions/workflows/build.yml/badge.svg)](https://github.com/MediaComem/revprod-backend/actions/workflows/build.yml)
[![license](https://img.shields.io/github/license/MediaComem/big-browser)](https://opensource.org/licenses/MIT)

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

Expand Down

0 comments on commit e63095a

Please sign in to comment.