Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

chore: Ci enhancement #193

Merged
merged 4 commits into from
Nov 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 32 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:
- '**'

jobs:
checks:
name: Checks
tests:
name: Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -23,24 +23,47 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: "16"
cache: 'yarn'
- name: Install
run: yarn install --frozen-lockfile
- name: Build
run: yarn run build
- name: Lint
run: yarn run lint
run: yarn --prefer-offline --frozen-lockfile
- name: Tests
run: 'xvfb-run --auto-servernum yarn run test:${{matrix.automation}}:${{ matrix.mm-version }} --timeout 50000'
- uses: actions/upload-artifact@v3
if: always()
with:
name: debug_screenshots
path: ./*.png
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
cache: 'yarn'
- name: Install deps
run: yarn --prefer-offline --frozen-lockfile
- name: Lint
run: yarn run lint
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
cache: 'yarn'
- name: Install deps
run: yarn --prefer-offline --frozen-lockfile
- name: Build
run: yarn build

maybe-release:
name: release
runs-on: ubuntu-latest
needs: [checks]
needs: [tests, lint, build]
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- uses: google-github-actions/release-please-action@v3 # it will analyze commits and create PR with new version and updated CHANGELOG:md file. On merging it will create github release page with changelog
Expand All @@ -60,7 +83,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}

- run: yarn install --frozen-lockfile
- run: yarn --prefer-offline --frozen-lockfile
if: ${{ steps.release.outputs.release_created }}

- run: yarn build
Expand Down