Commit Graph

63 Commits

Author SHA1 Message Date
Jacob Bolda
5efde04509
chore: turn off smoke tests (#669)
We are turning off the smoke tests for the time being as they are eating up our runners to much relative to the value we are currently getting from them. We will enable them in the future in a way that makes better use of our resources.
2020-06-12 11:02:00 -05:00
Jacob Bolda
d475767a14
feature: implement covector (#668)
* feature: implement covector

* Create change-status-on-PR.yml

* Create readme.md

* action is nested

* trailing comma in config
2020-06-12 09:23:54 -05:00
Jacob Bolda
c1aed1985b
chore: bump PR action version to v2.8.0 (#666) version updates
Hopefully this will fix our random permission failure :(
2020-06-11 21:11:16 -05:00
Rajiv Shah
b6797096e5
fix(workflow): Fail the build if publishing has nonzero exit code (#664) 2020-06-11 18:26:33 -03:00
Rajiv Shah
1fcc3dd3eb
fix(workflow): Change node and update gh-tangle-release to 0.6.2 (#662) 2020-06-11 17:36:47 -03:00
Rajiv Shah
94bd1517f3
fix(workflow): Use node that supports PoW for Tangle Release action (#647) 2020-06-10 14:00:12 +02:00
Tensor-Programming
d2ba2ffabd
fix vanilliajs folder 2020-05-28 04:36:41 -04:00
Tensor-Programming
9c3aec8499
fix paths 2020-05-28 04:36:02 -04:00
Jacob Bolda
342da74f78
chore: remove greeting workflow (#567) 2020-04-13 08:07:43 -05:00
Jacob Bolda
cb21b8fde9
chore: switched to forked create-pull-request (#565)
We can better manage the security by running from the forked version and selectively keeping in sync with upstream.
2020-04-12 08:53:41 -05:00
Jacob Bolda
d54c3b4ce5
chore(workflow): skip webkit2gtk install if not publishing (#558)
We reordered it in a previous PR, but forgot to add the `if` statement to also skip it.
2020-04-06 13:01:32 -05:00
Jacob Bolda
d202007656
chore(workflow): publish perf and prettying (#548)
* install webkit after we confirmed we will publish

this should speed up the publish sequence as we now only run one at a time

* new lines don't work, use empty echo
2020-04-02 21:54:08 -05:00
Jacob Bolda
cc7c26b245
chore(workflow): order cargo publish and limit to 1 (#535)
We were running into race conditions where one package depended on another being published. Limit to only allow one publish at a time, and sort based on dependencies to (hopefully) eliminate the race condition.
2020-03-29 13:57:00 -03:00
Jacob Bolda
2e67d2bc9f
chore(workflow): switch yarn audit in release to a collapsed section (#534) 2020-03-28 16:09:47 -05:00
Lucas Fernandes Nogueira
37afc5b0dc
fix(tauri.js) determine app path correctly (#493)
* fix(tauri.js) determine app path correctly

* fix(lint): replace backtick with single-quote

* fix(tests) mock app-paths

* fix(tauri.js) linting

* fix(test) use local tauri on empty fixture

* fix(tauri.js) linting

* fix(workflows) use local tauri-bundler test-tauri-js-cli

* fix(workflows) wrong cargo install command

* fix(tauri) comment webview-spawning test

Co-authored-by: nothingismagick <denjell@sfosc.org>
2020-03-09 21:27:54 -03:00
Lucas Fernandes Nogueira
d37efa5605
test(tauri.js) add template test, close #427 (#501)
* test(tauri.js) add template test

* fix(lint) ignore prefer-optional-chain because babel-jest wont accept it

* feat(webpack) raw-loader test for windows

* fix(workflow) install tauri-bundler

* fix(EOF)

* chore(test) try with done cb

* fix(test) cwd scope

* fix(test) transform regex for windows

* fix(test) windows regex on jest transform

Co-authored-by: nothingismagick <denjell@sfosc.org>
2020-03-09 17:57:27 -03:00
Lucas Fernandes Nogueira
abd5c698bd
feat(tests) add e2e test (#244)
* feat(tauri.js) add API endpoint proxy

* feat(tauri.js) always resolve/reject proxy promise

* chore(proxy) wait for onTauriInit to start direct proxy to window.tauri

* feat(tests) add project for initial e2e test

* chore(tauri) remove whitespaces on runner.rs

* chore(test): remove updater.rs

* feat(tests) move e2e test to tauri.js/test/jest

thanks to @laegel for the awesome work moving the test code to jest

* feat(tests) prepare build for modes tests

* fix(tests) properly run build tests

* feat(tests) add dev e2e test

* fix(tests) cleanup

* chore(tests) move e2e test from express to http.createServer

* chore(tauri.js) husky back to 4.0.10

* chore(tests) custom transformer to export with default

* chore(tests) use jest mapping instead of relative paths

* chore(tests) move dev e2e test to http.createServer

* chore(tests) move dev/build e2e test to tes.each instead of for loop

* chore(tauri.js) add comment to non-webpack-require.ts

* chore(tests) change test.each to it.each

* chore(tests) adjust it.each message signature

* fix(tests) adjust to properly run on initial build

* fix(tests) properly cleanup

* fix(tests) wait server.close to reject test

* fix(tests) wait server.close to resolve test

* fix(actions) install webkit2gtk-4.0 on test-tauri-js-cli

* fix(ci) install tauri-cli on test-tauri-js-cli

* fix(tauri.js) lint errors

Co-authored-by: Lucas Nogueira <lucas@quasar.dev>
Co-authored-by: nothingismagick <denjell@sfosc.org>
2020-03-07 13:40:24 -03:00
Jacob Bolda
83d6e052e6
chore(workflow): tauri-bundler path considering workspace (#477)
`tauri-bundler` is not in the main cargo workspace so the target directory is not in the top level. Update the publishPath to compensate.

Also removing a couple extraneous things that aren't needed either. We had an extra '/' and we don't need to bother showing the directory within the `cargo package` command.
2020-03-01 08:07:49 -06:00
Rajiv Shah
018b1d877d
feature(workflows): Add ESLint check to workflow (#456)
* feature(workflows): Add ESLint check to workflow

* Use setup-node v1.x.x instead of v1.0.0

Co-Authored-By: Jacob Bolda <me@jacobbolda.com>

Co-authored-by: Jacob Bolda <me@jacobbolda.com>
2020-02-24 12:31:14 -06:00
Jacob Bolda
92bdedce46
chore(workflow): build tauri.js after install (#450) 2020-02-23 21:58:46 -06:00
Jacob Bolda
7167db8fad
fix(workflow): runner has to be in steps (#444) [version updates]
just put it in everything for now
2020-02-21 08:48:28 -06:00
Jacob Bolda
056d2205fa
chore(workflow): update tangle release for more logging (#432) 2020-02-21 15:25:38 +01:00
Jacob Bolda
c1638e92a6
fix(tauri): make github action envs absolute for extra path level in runner.rs (#438)
* fix(tauri): extra path level in runner.rs

This file is one folder deeper than the other files which reference this env. This env is a relative folder reference so we need to concat an extra folder traversal into it.

* Revert "fix(tauri): extra path level in runner.rs"

This reverts commit eb1034b4f3.

* make envs in GH Actions absolute for now

* runner is only available within steps
2020-02-19 09:02:19 -06:00
Ty Tracey
43f32edc01
Migrating examples to the example repo (#409)
* Migrating examples to the example repo

* update smoke test github action to example repo

* unclear what the path should be

* lock file moved

* remove ls

* x64?

darn conflicts

* missed cache path

* cargo build step isn't needed

Co-authored-by: Jacob Bolda <me@jacobbolda.com>
2020-02-16 15:28:37 -06:00
tensor-programming
2fe764913a
use x86 and x64 for wix. 2020-02-12 16:55:10 -05:00
Tensor-Programming
76c8376e74
Bug(Bundler): fix target arch in wix (#426)
* fix target arch in wix

* update github action to .amd64.msi
2020-02-12 16:51:17 -05:00
Jacob Bolda
3e7af3df4e
fix(publish): touch up npm/cargo publish workflow (#416) [version updates]
* skip yarn audit if current package is latest

* escape backticks

* escape backticks
2020-02-10 08:05:36 -06:00
Jacob Bolda
c4810ff195
add envs and publishPath, don't verify (#414) [version updates]
We were missing the envs so tauri-core didn't publish. It is fine if every package has these envs. We shouldn't need to verify as we have already built many times prior, and the verification gets very odd with packages all being bumped and being interdependent (inception verification).
2020-02-10 07:28:15 -06:00
Jacob Bolda
18009870fc
add missing $ (#412) [version updates] 2020-02-09 17:13:03 -06:00
Rajiv Shah
deeb28306b fix(publish): Use yarn audit instead of npm audit (#411) 2020-02-10 00:09:27 +01:00
Jacob Bolda
03eb578c3f
fix(publish): attempt two (#408) [version updates]
* need working dir on yarn install

* reorder cargo to login before publish
2020-02-09 16:54:10 -06:00
Jacob Bolda
4d1f61698d
fix(publish): login and build (#406) [version updates]
* yarn before pack

* login to cargo to publish

* skip install on same version

* workflow edits trigger too

* and this one too
2020-02-09 16:16:02 -06:00
Jacob Bolda
9eb9375959
testing clippy check on push (#403)
* Create check-on-push.yml

* push:

* try clippy with stable

* Create pid.rs

* remove pull request clippy check

* invalid mod?

* remove mod

* Delete pid.rs
2020-02-09 16:06:13 -03:00
Ty Tracey
b114fb8c38 Adding Clippy/Rust Fmt to the pr workflow #333 (#367)
* Added clippy configuration file, added github action to run clippy, and changed line endings for rust fmt

* fix(cippliy-check-action) install webkit2gtk

* fix(clippy_check) add env variables

* refactor(tauri) fix clippy checks

* chore(tauri) use tauri_includedir_codegen v0.5.2

* fix(tests) dir tests

Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com>
2020-02-08 14:18:09 -03:00
Jacob Bolda
2e8c65b4f2
feat(workflow): publishing pipeline (#399)
* Update and rename cargo-publish.yml to release-cargo.yml

* Update and rename npm-publish.yml to release-npm.yml

* Delete push-to-dev.yml

* Create pr-to-master.yml

* add newer packages to matrix

* check cargo published version

* skip cargo audit if versions match

* chore(release-cargo) tauri-cli renamed to tauri-bundler

Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com>
2020-02-08 13:09:12 -03:00
Lucas Fernandes Nogueira
7522d8ff8a
chore(bundler) rename tauri-cli crate to tauri-bundler (#401) 2020-02-08 12:51:48 -03:00
Tensor-Programming
e24a56f069
Chore: update Rust to 1.41.0 (#395)
* Update rust-toolchain

* update github actions for 1.41
2020-02-05 20:18:47 -05:00
Jacob Bolda
a1755cde9c
fix greeting message extra characters (#338) 2020-01-20 20:41:03 -06:00
nothingismagick
bed75c1099
feat(workflows): first-timer message (#326)
* feat(workflows): first-timer message

Just a little "hey there". For PRs remind them to sign commits.

* add explanation about why signed commits

* enhance pr-message

using the advice from @nklayman
2020-01-15 17:58:01 +01:00
Tensor-Programming
667d5905f6
Refact(api) Add error chain to Tauri_api. (#311)
* add error chain

* remove verson error

* update file error

* update dir

* fix file_system

* add command error type.

* fix minor inconsistency

* add command tests

* add other tests for cmd.

* add more testing for cmd

* add documentation.

* add walk_dir tests and documentation.

* add list_dir_contents test

* test for with_temp_dir

* add read_string tests and file error type.

* add test_binary and update tests.

* add check_read_binary_fail test

* add os codes for unix based systems.

* add core-tauri-test gh action

* update test-on-pr

* fix test to test all libs.

* fix unix/windows errors
2020-01-14 22:03:59 -05:00
BSKY
561677864c Bump actions/checkout from v1 to v2 (#308)
* Bump actions/checkout from v1 to v2

* Update smoke-test-prod.yml

* Update smoke-tests-source.yml

* Update test-on-pr.yml
2020-01-14 07:55:39 -06:00
Jacob Bolda
2ab604afd2
add global release changelog (#277)
This will create a draft release with all of the changes since the last tag. We can use it for the "marketing" changes / changelog, where each package can then still get its own changelog file. The bulk of the configuration sits in the tauri-pps/.github repo.
2020-01-05 08:41:42 -06:00
Jacob Bolda
7ecaee38f0
chore(actions): change cache to hash on .toml (#253)
* source smoke tests to use .toml hash in cache

* prod smoke tests to use .toml hash in cache
2019-12-30 17:07:26 -06:00
Jacob Bolda
232af15a2e use minimal profile for installation (#247)
* use minimal profile for installation

I believe we don't need the full standard install just to run the build.

* set minimal in prod as well
2019-12-30 01:41:03 +01:00
Lucas Fernandes Nogueira
a4e229ca10 feat(tauri) use config as JSON (#214)
* feat(tauri.js): move to typescript

* fix(tauri.js): properly export api as commonjs

* feat(tauri.js): convert tauricon to typescript

* fix(tauri.js/tauricon): type error

* chore(tauri.js/package): update yarn.lock

* chore(tauri.js/package): add build/pretest scripts

* refactor(tauri.js/template): remove duplicate types

* feat(tauri.js): use tauri.conf.json instead of .js

* feat(tauri) read config using tauri.conf.json

* fix(tauri) read devPath index.html from distDir

* chore(examples) move to conf.json

* chore(tauri.js) remove todo

* fix(ci) TAURI_DIR env variable

* fix(examples) move svelte-app config to tauri.conf.json

* fix(examples): line endings tauri.conf.json

* addition to previous commit

* fix(test): EOF in tauri.conf.json

Co-authored-by: Noah Klayman <noahklayman@gmail.com>
Co-authored-by: nothingismagick <drthompsonsmagickindustries@gmail.com>
2019-12-26 15:24:36 +01:00
Rajiv Shah
612d616112 feat(examples): Add Svelte app example (#218)
* feat(examples): Add Svelte app example

Created with `npx degit sveltejs/template svelte-app`

* feat(examples): Copy scripts to Svelte example

* chore(examples): Remove unnecessary dependency

* feature(examples): Run tauri init and copy tauri config

* feature(examples): Copy Readme from examples

* fix(examples): Move svelte to dependencies

* Revert "chore(examples): Remove unnecessary dependency"

This reverts commit 2465e753b2.

* chore(examples): Update Svelte example's Tauri config

* chore(examples): Enable Svelte app smoke tests
2019-12-25 00:13:21 +01:00
Jacob Bolda
4f9d2e2ba7 enable new examples in smoke tests (#194)
* rename smoke tests

* split into prod and source runs

* rename test job names for clarity

* snake case gatsby site

* remove airtable api key

* add new examples

* add new examples to renovate

* add scripts to package.json

* finish off vanillajs example
2019-12-21 10:47:33 +01:00
Jacob Bolda
8df78e29b6
slim down gatsby example, update deps (#193)
* shift example and slim config

removed gatsby-source-airtable and gatsby-theme-recipes to make things more simple, less fragile and speed up the build

* update action to point at new location

* update links

* add test articles

* add theme

* slim config, move to homepage folder

* update renovate path, enable automerge on examples

* turn off rebases, but keep on for examples
2019-12-21 00:34:36 -06:00
Rajiv Shah
1151181b36 fix(ci): Install webkit2gtk on ubuntu when building smoke tests via prod (#188) 2019-12-20 12:36:23 +01:00
Lucas Fernandes Nogueira
1951fc88c9 feat(tauri) lazy loading for the no-server mode (#161)
* feat(tauri) WIP on iframe wrapper

* fix(tauri) iframe communication working

* refactor(tauri) iframe injection on all modes

* feat(event): update tauri.js injection

* fix(tauri) rework on iframe/devServer

* feat(tauri.js) use load event to notify tauri ready

* fix(cargo.lock): remove erroneous lockfile

* WIP

* remove iframe

* feat(tauri) inline assets, inject tauri.js

* fix(example) tauri init

* fix(api) load bundled asset

* chore(api) remove println

* chore(template) remove deprecated event listener

* chore(example) gitignore tauri.js

* chore(package.json) update email

* fix(tauri) embedded-server's server_url definition

* chore(api) use salt on event listener again

* chore(webpack) add eslint

* remove forward slash

* perf(tauri) do not bundle inlined assets

* chore(tauri) macros and platform only when using the updater feature

* fix(tauri) proper feature check for the loadAsset API

* chore(tauri) add "forked from" reference

* chore(example) use @tauri-apps/tauri-webpack

* fix(tauri) dev-server mode fixes

* chore(example) use tauri-webpack 0.1.3

* feat(webpack) rewrite lazy loading only on the no-server mode

* fix(no-server) lazy load images

* chore(tauri) use forked includedir_codegen

* fix deps

* fix(tauri) use the right version for includedir deps

* chore(tauri) println rerun-if-changed on dev
2019-12-17 22:39:34 +01:00