tauri/.github/workflows/test-cta.yml
David D 71ea86a443
feat(cta): add SolidJS recipe (#2619)
Co-authored-by: Amr Bashir <48618675+amrbashir@users.noreply.github.com>
2021-09-22 10:42:58 -03:00

98 lines
2.8 KiB
YAML

# Copyright 2019-2021 Tauri Programme within The Commons Conservancy
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: MIT
name: test create-tauri-app
env:
RUST_BACKTRACE: 1
TAURI_RECIPE: 'vanillajs,cra,vite,ngcli,solid'
on:
workflow_dispatch:
inputs:
platform:
default: 'ubuntu'
pull_request:
paths:
- 'tooling/create-tauri-app/**'
jobs:
create-recipe-with-npm:
name: 'node@${{ matrix.node }} + npm@${{ matrix.manager }}'
runs-on: ${{ github.event.inputs.platform || 'ubuntu' }}-latest
strategy:
fail-fast: false
matrix:
node: ['14', '16']
manager: ['7']
exclude:
- node: '16'
manager: '6'
steps:
- uses: actions/checkout@v2
- name: install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: volta-cli/action@v1
with:
node-version: ${{ matrix.node }}
npm-version: ${{ matrix.manager }}
yarn-version: 1.22.5
- name: install webkit2gtk
if: (github.event.inputs.platform || 'ubuntu') == 'ubuntu'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
- run: yarn
working-directory: tooling/cli.js
- run: yarn build
working-directory: tooling/cli.js
- run: yarn
working-directory: tooling/api
- run: yarn build
working-directory: tooling/api
- run: yarn
working-directory: tooling/create-tauri-app
- run: yarn build
working-directory: tooling/create-tauri-app
- run: yarn test
working-directory: tooling/create-tauri-app
env:
TAURI_RUN_MANAGER: 'npm'
# create-recipe-with-yarn:
# name: "node@${{ matrix.node }} + yarn@1"
# runs-on: ${{ github.event.inputs.platform || 'ubuntu' }}-latest
# strategy:
# fail-fast: false
# matrix:
# node: ["14", "16"]
# steps:
# - uses: actions/checkout@v2
# - name: install stable
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
# - uses: volta-cli/action@v1
# with:
# node-version: ${{ matrix.node }}
# yarn-version: 1.22.5
# - name: install webkit2gtk
# if: (github.event.inputs.platform || 'ubuntu') == 'ubuntu'
# run: |
# sudo apt-get update
# sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
# - run: yarn
# working-directory: tooling/create-tauri-app
# - run: yarn build
# working-directory: tooling/create-tauri-app
# - run: yarn test
# working-directory: tooling/create-tauri-app
# env:
# TAURI_RUN_MANAGER: "yarn"