Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: New workflows for tests #11

Merged
merged 18 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 0 additions & 2 deletions .github/CODEOWNERS

This file was deleted.

19 changes: 0 additions & 19 deletions .github/dependabot.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/release-drafter.yml

This file was deleted.

Binary file modified .github/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 0 additions & 35 deletions .github/workflows/check-docs.yml

This file was deleted.

71 changes: 0 additions & 71 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

60 changes: 0 additions & 60 deletions .github/workflows/cron-test.yaml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/daily-alpha.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/electronegativity.yml

This file was deleted.

90 changes: 90 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Integration tests

on:
push:
branches:
- "**"
pull_request:
branches:
- main
workflow_dispatch: {}

permissions:
contents: read

jobs:
test-integration:
name: integration tests on ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
arch: x64
- os: macos-latest
arch: arm64
- os: windows-latest
arch: x64

runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Get npm cache directory
shell: bash
run: echo "npm_cache_dir=$(npm config get cache)" >> ${GITHUB_ENV}

- name: Use cache
uses: actions/cache@v4
with:
path: ${{ env.npm_cache_dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: Install Python setuptools (macOS)
if: runner.os == 'macOS'
run: brew install python-setuptools

- name: Install minikube (Linux)
if: runner.os == 'Linux'
uses: medyagh/setup-minikube@master
with:
kubernetes-version: v1.30.1

- name: Install dependencies
uses: nick-fields/retry@v3
with:
timeout_minutes: 20
max_attempts: 3
retry_on: error
command: npm ci

- name: Build
run: npm run build

- name: Build Electron app
run: npm run build:app -- -- -- dir --${{ matrix.arch }}

- name: Run integration tests (Linux)
if: runner.os == 'Linux'
run: xvfb-run --auto-servernum --server-args='-screen 0, 1600x900x24' npm run test:integration

- name: Run integration tests (macOS, Windows)
if: runner.os != 'Linux'
run: npm run test:integration

- name: Clean after tests
run: npm run clean

- name: Check untracked files
shell: bash
run: for f in $(git ls-files --others --exclude-standard); do git diff --no-index --stat --exit-code /dev/null $f; done
Loading
Loading