diff --git a/.github/workflows/node.js.yml b/.github/workflows/api.yml similarity index 50% rename from .github/workflows/node.js.yml rename to .github/workflows/api.yml index d826fa8..ea00e58 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/api.yml @@ -1,7 +1,7 @@ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions -name: Node.js CI +name: api on: push: @@ -11,21 +11,7 @@ on: jobs: build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [18.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - steps: - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - run: ./install.sh - - run: ./build.sh - - run: ./test.sh - # TODO: build dockers too + - run: docker compose build api diff --git a/.github/workflows/db.yml b/.github/workflows/db.yml new file mode 100644 index 0000000..8e6a3a7 --- /dev/null +++ b/.github/workflows/db.yml @@ -0,0 +1,17 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: db + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: docker compose build db diff --git a/README.md b/README.md index 37de56e..7c8ac94 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # Jeu de mots - - - +[![ui](https://github.com/berdal84/jeudemots/actions/workflows/ui.yml/badge.svg?branch=master&event=status)](https://github.com/berdal84/jeudemots/actions/workflows/ui.yml) +[![api](https://github.com/berdal84/jeudemots/actions/workflows/api.yml/badge.svg?branch=master&event=status)](https://github.com/berdal84/jeudemots/actions/workflows/api.yml) +[![db](https://github.com/berdal84/jeudemots/actions/workflows/db.yml/badge.svg?branch=master&event=status)](https://github.com/berdal84/jeudemots/actions/workflows/db.yml) ## Introduction