Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub Actions #9680

Merged
merged 72 commits into from
Aug 11, 2020
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
aaeb138
first try
outofambit Apr 30, 2020
bc10876
maybe we don't need this
outofambit Apr 30, 2020
28242cb
checkout with submodules recursively
outofambit Apr 30, 2020
79a5dc4
mock nativeTheme for tests
outofambit May 4, 2020
4f88090
Merge branch 'development' into spike/actions-win32
niik Jul 9, 2020
c426945
Set CI env var for all steps
niik Jul 9, 2020
134beec
Get SHA on GitHub Actions
niik Jul 9, 2020
cc9e4b2
Get whether we're on a fork in an action
niik Jul 9, 2020
4d10b0d
We can build on Windows on GH actions as well
niik Jul 9, 2020
0e52cee
This is already set by default
niik Jul 9, 2020
c308631
GitHub Actions can build on darwin as well
niik Jul 9, 2020
50bba8d
Skip this for now
niik Jul 9, 2020
0bbbcf3
We're on Node 12 now
niik Jul 9, 2020
f7bc91c
More apt description
niik Jul 9, 2020
f80301f
Cache yarn packages
niik Jul 9, 2020
a483c92
Don't know how I managed to duplicate that
niik Jul 9, 2020
c8d4608
Try bumping spectron?
niik Jul 9, 2020
423a91d
Limit the run time
niik Jul 9, 2020
632cbe3
Use the correct version of spectron
niik Jul 9, 2020
2dfa2d0
Build it
niik Jul 9, 2020
c16ce78
Lint it
niik Jul 9, 2020
2bbc9b5
Give it a little bit more time
niik Jul 9, 2020
347a354
Try inspecting what's changed
niik Jul 9, 2020
b57a6c3
Oh wait, I'm at fault, as per usual
niik Jul 9, 2020
86f432b
Add some secrets
niik Jul 9, 2020
110fd8d
Add an initial publish step (don't worry, it doesn't have the creds t…
niik Jul 9, 2020
f4aace4
Split up unit and integration tests
niik Jul 9, 2020
fd3936f
How hard could it possibly be?
niik Jul 9, 2020
fe4902d
Maybe it's time to stop referring to this as win32 only
niik Jul 9, 2020
5370583
Rename action to ci
niik Jul 9, 2020
48fe311
Whoops
niik Jul 9, 2020
ee5c0b4
Try a nicer job name
niik Jul 9, 2020
d652608
Test reporting test errors
niik Jul 9, 2020
10e880b
I guess not?
niik Jul 9, 2020
e80b577
Include test locations
niik Jul 9, 2020
a80709c
Drop jest-junit
niik Jul 9, 2020
87d3607
Revert accidental changes to jest unit config
niik Jul 9, 2020
c6e17fd
Include test location in results for integration tests
niik Jul 9, 2020
a5a409f
We don't have jest-unit any more
niik Jul 9, 2020
b01b903
Debug forever
niik Jul 9, 2020
ac0eb1d
omg
niik Jul 9, 2020
29c3dcd
Get rid of debug log
niik Jul 9, 2020
573ae7b
Try getting the actual failure position
niik Jul 9, 2020
c109b5a
Simpler path
niik Jul 9, 2020
522a1fb
Try splitting it out even further to see if we can get windows builds…
niik Jul 9, 2020
58fb280
Try forcing an eslint error
niik Jul 9, 2020
d57b390
Revert "Try forcing an eslint error"
rafeca Jul 22, 2020
033cb0c
Remove test that was failing on purpose
rafeca Jul 22, 2020
ce6228b
Run the GitHub Actions workflow on release branches
rafeca Jul 22, 2020
9398db9
Add missing secrets
rafeca Jul 22, 2020
853dfea
Pin to major versions for OS images
rafeca Jul 22, 2020
1d6b7e9
Disable core.symlinks on windows
rafeca Jul 22, 2020
598e416
Calculate the release branch name correctly on GitHub Actions
rafeca Jul 22, 2020
4011001
Add some secrets to the build step
rafeca Jul 22, 2020
91f2187
Return SHA for github actions
rafeca Jul 22, 2020
726db12
Guard against empty value env variables in GitHub Actions
rafeca Jul 22, 2020
79bcf7c
Execute tests before publishing the production app
rafeca Jul 23, 2020
3d1ef54
Remove skip from test
rafeca Jul 23, 2020
c8663b6
Merge branch 'development' into spike/actions-win32
niik Aug 5, 2020
622428b
Resync yarn.lock after merge
niik Aug 5, 2020
229fc60
Merge branch 'development' into spike/actions-win32
niik Aug 7, 2020
ae342d5
Resync yarn lock after merge
niik Aug 7, 2020
b3b7692
Remove appveyor and travis configs
niik Aug 7, 2020
e92783d
Revert "Disable core.symlinks on windows"
rafeca Aug 11, 2020
a2f22a8
Merge branch 'development' into spike/actions-win32
rafeca Aug 11, 2020
bc7377d
Update .github/workflows/ci.yml
niik Aug 11, 2020
53c5422
This is how I would like it to work
niik Aug 11, 2020
95ad1ff
is rafael cleverer than a fox?
niik Aug 11, 2020
14465f9
INDENTATION THOUGH
niik Aug 11, 2020
7f20b8e
Remove branches filtering from pull_requests event
rafeca Aug 11, 2020
99d00c9
Use exact cache match if it exists
niik Aug 11, 2020
ac3b9e8
Just the OS is enough I think
niik Aug 11, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/test-win32.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Testing Win32

on:
push:
branches:
- development
pull_request:
branches:
- '*'

jobs:
test:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Use Node.js 10.x
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Get node modules
run: yarn
env:
CI: true
- name: test setup
run: yarn test:setup
env:
CI: true
- name: test
run: yarn test
env:
CI: true
5 changes: 5 additions & 0 deletions app/test/__mocks__/electron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ export const remote = {
autoUpdater: {
on: jest.fn(),
},
nativeTheme: {
addListener: jest.fn(),
removeAllListeners: jest.fn(),
shouldUseDarkColors: jest.fn().mockImplementation(() => true),
},
}

export const ipcRenderer = {
Expand Down