Skip to content

feat: update ci-cd

feat: update ci-cd #72

name: Run functional tests and lint on development branches and pull requests
on:
pull_request: # All pull requests
env:
NODE_VERSION: "20"
jobs:
lint:
name: Lint
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Login to PaaS NPM registry
uses: kuzzleio/[email protected]
with:
username: ${{ secrets.KUZZLE_PAAS_USERNAME }}
password: ${{ secrets.KUZZLE_PAAS_PASSWORD }}
login_only: true
npmrc_output_dir: .
- name: Lint the app
uses: ./.github/actions/lint
functional-tests-backend:
name: Functional Tests
runs-on: ubuntu-20.04
needs: [lint]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Login to PaaS NPM registry
uses: kuzzleio/[email protected]
with:
username: ${{ secrets.KUZZLE_PAAS_USERNAME }}
password: ${{ secrets.KUZZLE_PAAS_PASSWORD }}
login_only: true
npmrc_output_dir: .
- name: Functionnal tests
uses: ./.github/actions/functional-test-backend