Skip to content

Commit

Permalink
Merge pull request #26 from rainlanguage/2024-02-12-dotrain-v6
Browse files Browse the repository at this point in the history
dotrain v6 (rust with js bindings)
  • Loading branch information
rouzwelt authored Feb 14, 2024
2 parents 3066af0 + f2d1398 commit 2707b78
Show file tree
Hide file tree
Showing 35 changed files with 1,620 additions and 4,133 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/manual-vscode-pre-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Manual VSCODE Pre Release

on: [workflow_dispatch]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

- 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: 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 test

- run: |
git config --global user.email "${{ secrets.CI_GIT_EMAIL }}"
git config --global user.name "${{ secrets.CI_GIT_USER }}"
# bump version
- name: Bump Patch Version
run: echo "NEW_VERSION=$(npm version patch --no-git-tag-version)" >> $GITHUB_ENV

# Commit changes and tag
- name: Commit And Tag
run: |
git add "package.json"
git add "package-lock.json"
git commit -m "Release ${{ env.NEW_VERSION }}"
git tag ${{ env.NEW_VERSION }}
# Push the commit to remote
- name: Push Changes To Remote
run: |
git push origin
git push -u origin ${{ env.NEW_VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Create gitHub release with built package archives
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.NEW_VERSION }}
name: Release ${{ env.NEW_VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Publish a pre-release version to vscode marketplace
- name: Pre-release Publish To vscode Marketplace
run: y | npx vsce publish --pre-release
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
79 changes: 79 additions & 0 deletions .github/workflows/manual-vscode-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Manual VSCODE Release

on: [workflow_dispatch]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

- 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: Lint
run: npm run lint

# install playwright
- name: Install Playwright
run: npx playwright install

# Run the desktop tests using headless setup
- name: Extension Test
uses: coactions/setup-xvfb@v1
with:
run: npm test

- run: |
git config --global user.email "${{ secrets.CI_GIT_EMAIL }}"
git config --global user.name "${{ secrets.CI_GIT_USER }}"
# bump version
- name: Bump Patch Version
run: echo "NEW_VERSION=$(npm version patch --no-git-tag-version)" >> $GITHUB_ENV

# Commit changes and tag
- name: Commit And Tag
run: |
git add "package.json"
git add "package-lock.json"
git commit -m "Release ${{ env.NEW_VERSION }}"
git tag ${{ env.NEW_VERSION }}
# Push the commit to remote
- name: Push Changes To Remote
run: |
git push origin
git push -u origin ${{ env.NEW_VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Create gitHub release with built package archives
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.NEW_VERSION }}
name: Release ${{ env.NEW_VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Publish an official version to vscode marketplace
- name: Official Publish To vscode Marketplace
run: y | npx vsce publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
45 changes: 45 additions & 0 deletions .github/workflows/rainix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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
153 changes: 0 additions & 153 deletions .github/workflows/standard-publish.yaml

This file was deleted.

Loading

0 comments on commit 2707b78

Please sign in to comment.