Commit Graph

73 Commits

Author SHA1 Message Date
Jacob Bolda
07b7d3179a
fix: update rust docs PR needs a path (#742)
It is being checked out in a subdir, so we need to give the PR a path to it.
2020-07-03 15:00:12 -05:00
Jacob Bolda
d109c066c2
chore: update rust docs on release (#739)
* chore: update rust docs on release

* update commit message

also working directory doesn't apply with `uses`
2020-07-03 14:13:39 -05:00
Jacob Bolda
e130c3ca56
chore: pin covector action (#737)
* Update change-status-on-PR.yml

* Update pr-version-updates.yml
2020-07-03 12:16:33 -05:00
nothingismagick
2681ad361b
refactor(tauri.js) rewrite API module in TypeScript, closes #679 #435 (#703)
Co-authored-by: Quentin Goinaud <armaldio@gmail.com>
Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com>
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2020-06-27 12:20:00 -03:00
Jacob Bolda
c07afcf9d4
fix: covector action should ref main now (#720) 2020-06-26 07:51:58 -05:00
Jacob Bolda
947edb9b62
chore: generate the Cargo lockfile for audit to run (#692)
* chore: generate the Cargo lockfile for audit to run

* add audit path
2020-06-18 11:21:35 -05:00
Jacob Bolda
1f2ff7dc25
chore: fix version updates commit text (#693)
This fixes the commit so it includes "version updates" in the text. As it is a single commit, the default squash behavior uses the commit instead of the PR title for the commit that shows up in the dev branch (which wouldn't trigger the next workflow).
2020-06-18 01:21:31 -05:00
Jacob Bolda
00f311a42c
chore: rustbacktrace on [#663] (#687)
* enable backtrace on everything in test library

* enable on (disabled) smoke tests
2020-06-17 14:30:41 -05:00
Jacob Bolda
65e9c4fa40
feature: implement version change PR (#676)
* update readme with notes about character limits and designating bumps

* edit PR template to note addition of a change file

* add change file for #674

* add change file for #673

* add change file for #672

* add change file for #671

* add version action

* set version command in config

* add change file for #677

* add labels to PRs

* Update .changes/tauri-info-crash.md

Co-authored-by: Rajiv Shah <rajivshah1@icloud.com>

* Update .changes/HttpRequestBuilder-implementation.md

Co-authored-by: Rajiv Shah <rajivshah1@icloud.com>

* Update kill-beforeDevProcess-on-shutdown.md

* Update reflect-conf-changes.md

Co-authored-by: Rajiv Shah <rajivshah1@icloud.com>
Co-authored-by: Lucas Fernandes Nogueira <lucasfernandesnog@gmail.com>
2020-06-15 15:29:22 +02:00
Lucas Fernandes Nogueira
14a1ddfe18
feat(tauri) add app CLI interface config (#670) 2020-06-14 23:36:35 -03:00
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