File tree 2 files changed +23
-3
lines changed
2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 32
32
run : dotnet build .\SauceLabs.Visual\SauceLabs.Visual.csproj --no-restore
33
33
- name : Test
34
34
run : dotnet test --verbosity normal
35
+
36
+ test :
37
+ runs-on : ubuntu-latest
38
+ steps :
39
+ - uses : actions/checkout@v4
40
+ - name : Set up Docker Buildx
41
+ uses : docker/setup-buildx-action@v3
42
+ - name : Build and push to local registry
43
+ uses : docker/build-push-action@v5
44
+ with :
45
+ context : ' {{defaultContext}}:visual-dotnet'
46
+ tags : saucelabs/visual-dotnet
47
+ file : Dockerfile
48
+ load : true
49
+ - name : Run the integration tests
50
+ run : |
51
+ npm ci
52
+ npm run test
53
+ working-directory : tests
54
+ env :
55
+ SAUCE_USERNAME : ${{ secrets.SAUCE_USERNAME }}
56
+ SAUCE_ACCESS_KEY : ${{ secrets.SAUCE_ACCESS_KEY }}
57
+ CONTAINER_IMAGE_NAME : saucelabs/visual-dotnet
Original file line number Diff line number Diff line change 5
5
6
6
RUN dotnet restore
7
7
8
- # run tests on docker build
9
- RUN dotnet test
10
-
11
8
ENV RUN_IT true
12
9
13
10
# run tests on docker run
You can’t perform that action at this time.
0 commit comments