Merge pull request #1008 from kuzzleio/4-dev #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Main branches push checks | |
on: | |
push: | |
branches: | |
- master | |
env: | |
NODE_VERSION: '20' | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-24.04 | |
continue-on-error: true | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: 'npm' | |
- name: Run linter | |
uses: ./.github/actions/lint | |
e2e-tests: | |
name: E2E Cypress tests | |
needs: ['lint'] | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Start Kuzzle | |
run: docker compose up --wait | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
build: npm run build | |
start: npm run preview | |
browser: chrome | |
- name: Upload screenshots | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: cypress-snapshots | |
path: test/e2e/failed-test | |
deploy-production: | |
name: Deploy Admin Console to production - console.kuzzle.io | |
needs: ['e2e-tests'] | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: 'npm' | |
- name: Deploy to S3 | |
uses: ./.github/actions/deploy-to-s3 | |
with: | |
REGION: us-west-2 | |
S3_BUCKET: console.kuzzle.io | |
CLOUDFRONT_ID: E2GPBJ9T0QR37G | |
GA_ID: G-4EDTRNC8S9 | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |