build all smoke tests and artifact fixes (#128)

* build quasar and try artifact fix

* fix(examples:quasar): add build command

* cache example deps

* try concat strings?

* global join function

* try format

* don't need relative file ref

* fix cache path

* fix(examples:quasar): add missing yarn command

* via-source uses object, add property ref

* fix(examples:quasar): canonical yarns

* fix(examples:gatsby): typos package.json scripts

* fix(examples:quasar): typo

* fix(examples:quasar): put the build command back.

doh

* fix(examples:quasar): add local tauri as devDep
This commit is contained in:
Jacob Bolda
2019-12-02 16:48:43 -06:00
committed by nothingismagick
parent 6eb1837181
commit 218a9f29c8
3 changed files with 32 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ jobs:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
example: [gatsby/themed-site]
example: [gatsby/themed-site, vue/quasar-app]
steps:
- uses: actions/checkout@v1
@@ -22,6 +22,12 @@ jobs:
with:
toolchain: stable
- run: cargo install tauri-cli
- name: cache node modules
uses: actions/cache@v1
with:
path: ${{ format('examples/{0}/node_modules', matrix.example) }}
key: ${{ runner.OS }}-build-${{ hashFiles(format('examples/{0}/yarn.lock', matrix.example)) }}
restore-keys: ${{ runner.OS }}-build-${{ env.cache-name }}-
- name: install via yarn
run: |
cd ./examples/${{ matrix.example }}
@@ -49,6 +55,12 @@ jobs:
- name : GatsbyThemedSite
folder: gatsby/themed-site
executable: GatsbyThemedSiteApp
- name: quasar-app
folder: vue/quasar-app
executable: app
include:
- platform: windows-latest
ext: .exe
steps:
- uses: actions/checkout@v1
@@ -73,6 +85,12 @@ jobs:
run: |
cd ./cli/tauri.js
yarn
- name: cache node modules
uses: actions/cache@v1
with:
path: ${{ format('examples/{0}/node_modules', matrix.example.folder) }}
key: ${{ runner.OS }}-build-${{ hashFiles(format('examples/{0}/yarn.lock', matrix.example.folder)) }}
restore-keys: ${{ runner.OS }}-build-${{ env.cache-name }}-
- name: install via yarn
run: |
cd ./examples/${{ matrix.example.folder }}
@@ -91,4 +109,4 @@ jobs:
if: success()
with:
name: tauri built ${{ matrix.example.name }} on ${{ matrix.platform }}
path: ./examples/${{ matrix.example.folder }}/src-tauri/target/release/${{ matrix.example.executable }}
path: ./examples/${{ matrix.example.folder }}/src-tauri/target/release/${{ matrix.example.executable }}${{ matrix.ext }}

View File

@@ -15,8 +15,8 @@
"format": "prettier --write \"**/*.{js,jsx,json,md}\"",
"tauri:prod": "tauri",
"tauri:source": "node ../../../cli/tauri.js/bin/tauri",
"tauri:source:init": "yarn tauri:source init --tauri-path ../../../tauri",
"tauri:prod:init": "yarn tauri:prod:init",
"tauri:source:init": "yarn tauri:source init --tauriPath ../../../tauri",
"tauri:prod:init": "yarn tauri:prod init",
"tauri:source:dev": "yarn tauri:source dev",
"tauri:prod:dev": "yarn tauri:prod dev",
"tauri:source:build": "yarn tauri:source build",

View File

@@ -10,11 +10,15 @@
"scripts": {
"lint": "eslint --ext .js,.vue src",
"test": "echo \"No test specified\" && exit 0",
"tauri": "node ../../../cli/tauri.js/bin/tauri",
"build": "quasar build",
"tauri:prod": "tauri",
"tauri:source": "node ../../../cli/tauri.js/bin/tauri",
"tauri:init": "node ../../../cli/tauri.js/bin/tauri init --tauriPath ../../../tauri",
"tauri:dev": "node ../../../cli/tauri.js/bin/tauri dev",
"tauri:build": "node ../../../cli/tauri.js/bin/tauri build"
"tauri:source:init": "yarn tauri:source init --tauriPath ../../../tauri",
"tauri:prod:init": "yarn tauri:prod init",
"tauri:source:dev": "yarn tauri:source dev",
"tauri:prod:dev": "yarn tauri:prod dev",
"tauri:source:build": "yarn tauri:source build",
"tauri:prod:build": "yarn tauri:prod build"
},
"dependencies": {
"@quasar/extras": "^1.0.0",
@@ -26,7 +30,8 @@
"babel-eslint": "^10.0.1",
"eslint": "^5.10.0",
"eslint-loader": "^2.1.1",
"eslint-plugin-vue": "^5.0.0"
"eslint-plugin-vue": "^5.0.0",
"tauri": "^0.1.3"
},
"engines": {
"node": ">= 8.9.0",