Skip to content

Commit

Permalink
Add test workflow for the msi package
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzaremmal committed Jul 13, 2024
1 parent 880d773 commit 61b0d9f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1011,5 +1011,8 @@ jobs:

build-msi-package:
uses: ./.github/workflows/build-msi.yml
if : github.event_name == 'pull_request' && contains(github.event.pull_request.body, '[test_msi]')
# TODO: ADD A JOB THAT DEPENDS ON THIS TO TEST THE MSI

test-msi-package:
uses : ./.github/workflows/test-msi.yml
if : github.event_name == 'pull_request' && contains(github.event.pull_request.body, '[test_msi]')
needs: build-msi-package
34 changes: 34 additions & 0 deletions .github/workflows/test-msi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
###################################################################################################
### THIS IS A REUSABLE WORKFLOW TO TEST SCALA MSI ###
### HOW TO USE: ###
### ###
### NOTE: ###
### ###
###################################################################################################

name: Test the MSI package

on:
workflow_call:

jobs:
test:
runs-on: windows-latest
steps:
- name: Fetch the MSI package from GitHub Artifacts
uses: actions/download-artifact@v4
with:
name: scala.msi
- name : Install Scala from the MSI Package
run : |
Start-Process msiexec -ArgumentList "/i scala.msi /qn /passive /quiet" -NoNewWindow -Wait
shell: pwsh
- name : Check that the `scala` command is available
run : scala --version
shell: cmd
- name : Check that the `scalac` command is available
run : scalac --version
shell: cmd
- name : Check that the `scaladoc` command is available
run : scaladoc --version
shell: cmd

0 comments on commit 61b0d9f

Please sign in to comment.