Commit graph

35 commits

Author SHA1 Message Date
Sipke Schoorstra 016eaf6abb Add docker credentials 2021-03-17 22:56:37 +01:00
Sipke Schoorstra b663935248 Docker build test 1 2021-03-17 22:33:27 +01:00
Craig Fowler 672e32a7ca WIP #552 - Add unit test to repro
Actually, this unit test does not repro the issue.
Frustratingly I can't get it to save the executed workflow
into MongoDB at all.  I see workflow execution logs
being saved, but the instance doesn't go in.

I'm not sure if this is a mistake I'm making or whether
I have found a different bug of some sort.
2021-03-06 17:22:37 +00:00
Craig Fowler b2b69cb85e Attempt to fix build; after_test "executed with exception"
I'm a little confused as to how this happened.  It could
relate to an exit code sent by SonarScanner.

I'm going to combine these two commands into a single step
so that if SonarScanner drops a non-zero exit code, it should
still continue on past it.
2021-02-27 19:32:46 +00:00
Craig Fowler 850b01b2d2 Fix build after #486 - Prevent SonarScanner on PR
Because AppVeyor won't decrypt secure variables on pull requests,
that causes a SonarScanner error when the secure variable value
isn't available, failing the build.

This solution is documented at:
  https://medium.com/@stef.heyenrath/how-to-fix-sonarcloud-issue-in-a-github-pr-when-using-appveyor-integration-8909b49406b4
All it really does is disable SonarScanner for PRs.
2021-02-27 20:00:54 +01:00
Craig Fowler 2620905828 Bump version for NuGet preview7
This is not so much about formally launching a
package, it will complete the testing of #664.

Part of that ticket can only be tested by pushing
a tagged commit to the 2.0 branch.
2021-02-27 16:02:53 +00:00
Craig Fowler 76588089a2 Follow-up #665 - Fix version number
This means that SonarCloud will display the correct version
number for each analysis now.
2021-02-27 15:32:55 +00:00
Craig Fowler e9d00e6b21 Follow-up to #665 - Put 'pack' step into after_test
The before_package step doesn't seem to be run, despite being
documented at https://www.appveyor.com/docs/appveyor-yml/

I've moved this step to after_test, which will work just fine.
It's just frustrating that really it's got nothing to do with testing.
2021-02-27 15:00:40 +00:00
Craig Fowler 917444c8c9 Resolve #665 - Fix project name 2021-02-27 14:38:42 +00:00
Craig Fowler 622ff1ad5f WIP #665 - Add changes to YML in order to trigger SonarScanner
The main things going on here in the YML are:
* Adding some env vars for SonarScanner
* Adding the SonarScanner package as a build tool
* Adding before-build/after-test steps to setup/teardown SonarScanner
* Separating the "pack" step from the "build" step
  * Pack moved to before-package which occurs after tests pass
  * See https://www.appveyor.com/docs/build-configuration/#build-pipeline
* Tests run with logging & code-coverage detection
* Test results are added as AppVeyor artifacts
2021-02-27 14:33:58 +00:00
Craig Fowler 8d4339f4b0 Revert "Merge branch 'feature/665-SonarCloud-integration' into feature/elsa-2.0"
This reverts commit 3dc1b79b3b, reversing
changes made to 1dbafd8ba2.

The previous merge of work on #665 broke the build so this commit
reverts it back out.
2021-02-27 13:58:06 +00:00
Craig Fowler a1a812a159 WIP #665 - Add changes to YML in order to trigger SonarScanner
The main things going on here in the YML are:
* Adding some env vars for SonarScanner
* Adding the SonarScanner package as a build tool
* Adding before-build/after-test steps to setup/teardown SonarScanner
* Separating the "pack" step from the "build" step
  * Pack moved to before-package which occurs after tests pass
  * See https://www.appveyor.com/docs/build-configuration/#build-pipeline
* Tests run with logging & code-coverage detection
* Test results are added as AppVeyor artifacts
2021-02-27 12:44:22 +00:00
Craig Fowler ddcb3878f8 WIP #664 - De-duplicate in-use parts of YML
This is a bit of naughty scope-creep on that issue.
I noticed that there's some further parts of the YML which
are duplicated between the two v2 sections of the YML.

It seems that the intent is mainly about deploying to MyGet on
every build (in the appropriate branch) but only deploying to NuGet
if building from a tag.  Also, the actual build steps between these two
seem to be out of sync.

I've switched to a more concise way of achieving this same result,
which allows me to de-duplicate the two build configs so they're using
the same build process.

The only other real thing I did there was sneak in the autocrlf git
setting.  It's just a good idea on Windows to avoid being caught out.
2021-02-25 20:20:59 +01:00
Craig Fowler c2c831b625 WIP #664 - Remove redundant build config
Also clarify the comments for the two remaining ones.
2021-02-25 20:20:59 +01:00
Craig Fowler f34409696d
Should resolve #653 - Reinstate tests in CI process for v2 branch (#658)
* WIP #653 - Delete two tests

These two couldn't easily be fixed, in both cases they were
integration tests which involved passing through many classes.
It wasn't immediately clear what needed to be done to fix them.

As noted in the issue description, removing them was an
acceptable fix.

* WIP #653 - Fix a failing test

I split this test into two.  Per the discussion at:
  https://github.com/xunit/xunit/issues/350
XUnit seems quite opinonated about not having assertion messages.
Thus, without changing assertion library (which deserves discussion
before I just do it), the logical next best thing is to split into two
single-assert tests, so it's clear which assertion failed on a test
failure.

Also, I moved the AutoMoqData attribute to the shared test lib, so
that it can be used anywhere.  That allowed me to eliminate the
constructor for this test class, except for initialising the base class.

* Provisionally resolve #653 - reinstate tests in CI

This should complete the issue although we need to see a
passing CI build with this code change before we can say
it's done.

* Provisionally resolves #653 - Add test script
2021-02-25 09:24:00 +01:00
Sipke Schoorstra 1cab010f80 Update Node version 2021-02-13 11:22:07 +01:00
Sipke Schoorstra 2aed96616d Force npm install peer dependencies 2021-02-13 11:15:12 +01:00
Sipke Schoorstra 0c3ad4f9e1 Add tailwind.css 2021-02-02 12:42:47 +01:00
Sipke Schoorstra 280825df5f Update appveyor.yml 2021-02-02 12:31:02 +01:00
Sipke Schoorstra 03c9f94671
Improve specifications and YesSQL implementation (#529)
* Update Fluid.Core package

* Make specifications flexible

* Update build environment

* Disable global.json
2020-12-20 12:12:32 +01:00
Sipke Schoorstra f5d3f73590 Format appveyor.yml 2020-12-18 13:19:43 +01:00
Sipke Schoorstra a24483cb3b Fix code blocks 2020-12-18 12:41:52 +01:00
Sipke Schoorstra e4cbc82bdb Fix code block 2020-12-18 12:39:00 +01:00
Sipke Schoorstra 51c36031dd Fix code block 2020-12-18 12:37:43 +01:00
Sipke Schoorstra 7e4c22c82e Add path changes 2020-12-18 12:36:47 +01:00
Sipke Schoorstra 8453f2cc41 Fix newlines? 2020-12-18 12:29:27 +01:00
Sipke Schoorstra fb53892ff9 Update to Visual Studio 2019 2020-12-18 12:26:46 +01:00
Sipke Schoorstra ec7b1f9e73 Update npm install path 2020-12-18 12:25:57 +01:00
Sipke Schoorstra 264fe1ed15 Try node install 2020-12-18 12:20:14 +01:00
Sipke Schoorstra 73dddbc3ff Try node install 2020-12-18 12:19:43 +01:00
Sipke Schoorstra c574e2b70f Visual Studio 2019 Preview 2020-12-18 12:15:59 +01:00
Sipke Schoorstra 5575cdb722 Update appveyor.yml 2020-12-18 12:14:19 +01:00
Sipke Schoorstra 3f830b805f Update appveyor.yml
Need per-branch config
2020-12-18 12:09:20 +01:00
Sipke Schoorstra eba7c9e43e Update appveyor.yml
Need per-branch config
2020-12-18 12:06:07 +01:00
Sipke Schoorstra aa720a8a51 Add appveyor.yml 2020-12-18 11:58:19 +01:00