Skip to content

Commit 716de6b

Browse files
committed
skip bare ubuntu
1 parent 33113d5 commit 716de6b

File tree

1 file changed

+4
-39
lines changed

1 file changed

+4
-39
lines changed

.github/workflows/examples_pr_checks.yml

Lines changed: 4 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Examples pull request checks
1+
name: Test examples
22

33
on:
44
pull_request:
@@ -11,7 +11,7 @@ concurrency:
1111

1212
jobs:
1313
check-example-changes:
14-
name: Check example folders for changes
14+
name: Filter projects
1515
runs-on: ubuntu-22.04
1616
outputs:
1717
matrix: ${{ steps.set-matrix.outputs.matrix }}
@@ -58,11 +58,6 @@ jobs:
5858
if echo "$changed_files" | grep -q "^$path/"; then
5959
examples+=("{\"name\": \"$name\", \"path\": \"$path\"}")
6060
echo "Added example: $name with path $path"
61-
else
62-
if echo "$changed_files" | grep -q "^\.github/workflows/provision_"; then
63-
examples+=("{\"name\": \"$name\", \"path\": \"$path\"}")
64-
echo "Added example: $name with path $path (due to provision workflow change)"
65-
fi
6661
fi
6762
done
6863
@@ -77,8 +72,8 @@ jobs:
7772
echo "matrix=$matrix" >> $GITHUB_OUTPUT
7873
fi
7974
80-
build-examples-devcontainer:
81-
name: Build updated examples
75+
build-examples:
76+
name: Build
8277
needs: check-example-changes
8378
if: needs.check-example-changes.outputs.has_examples == 'true'
8479
runs-on: ubuntu-22.04
@@ -107,33 +102,3 @@ jobs:
107102
fi
108103
dfx deploy
109104
fi
110-
111-
build-examples-no-container:
112-
name: Build updated examples
113-
needs: check-example-changes
114-
if: needs.check-example-changes.outputs.has_examples == 'true'
115-
runs-on: ubuntu-22.04
116-
strategy:
117-
matrix: ${{ fromJson(needs.check-example-changes.outputs.matrix) }}
118-
119-
steps:
120-
- name: Checkout
121-
uses: actions/checkout@v4
122-
123-
- name: Provision Linux
124-
run: bash .github/workflows/provision-linux.sh
125-
126-
- name: Start dfx
127-
run: dfx start --background
128-
129-
- name: Build project
130-
working-directory: ${{ matrix.example.path }}
131-
run: |
132-
if [ -f "Makefile" ]; then
133-
make test
134-
else
135-
if [ -f "package.json" ]; then
136-
npm install
137-
fi
138-
dfx deploy
139-
fi

0 commit comments

Comments
 (0)