Skip to content

Commit

Permalink
WIP: test snap in same job that generates it
Browse files Browse the repository at this point in the history
  • Loading branch information
siwatanejo committed May 17, 2024
1 parent 8d73700 commit 2e328dd
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ jobs:
name: snap
path: ./*.snap

- name: Install snap
run: |
sudo snap install --devmode --dangerous *.snap
- name: Test snap
run: dotnet-fsharp-helloworld

integration_tests:
strategy:
matrix:
Expand All @@ -83,30 +90,11 @@ jobs:
- uses: actions/checkout@v1
- name: Run Tests
run: dotnet test

run_snap:
needs: build_snap

runs-on: ubuntu-22.04
steps:
- uses: actions/download-artifact@v3
name: Download artifact
with:
name: snap

- name: Install snap
run: |
zip -r snap.zip .
# dangerous because it's a local snap (not one from the SnapStore)
sudo snap install --devmode --dangerous *.snap
- name: Test snap
run: dotnet-fsharp-helloworld

conventions:
needs:
- integration_tests
- run_snap
- build_snap

runs-on: ubuntu-22.04
container:
Expand Down

0 comments on commit 2e328dd

Please sign in to comment.