Merge pull request #33 from rainlanguage/2024-05-24-update-dotrain-ve… #37
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: Rainix CI | |
on: [push] | |
jobs: | |
rainix: | |
runs-on: ubuntu-latest | |
env: | |
DEPLOYMENT_KEY: ${{ github.ref == 'refs/heads/main' && secrets.PRIVATE_KEY || secrets.PRIVATE_KEY_DEV }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v4 | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- name: Install NodeJS v21 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 21 | |
cache: 'npm' | |
- name: Install Deps | |
run: nix run .#install | |
- name: Build Prod | |
run: npm run build-prod | |
- name: Build Dev | |
run: npm run build | |
- name: Lint | |
run: npm run lint | |
# install playwright | |
- name: Install Playwright | |
run: npx playwright install | |
# Run the desktop tests using headless setup | |
- name: Desktop Extension Test | |
uses: coactions/setup-xvfb@v1 | |
with: | |
run: npm run test-desktop | |
# Run the web extention tests | |
- name: Web Extension Test | |
run: npm run test-web |