diff options
author | Felix Boerner <ich@felix-boerner.de> | 2024-04-06 18:10:10 +0200 |
---|---|---|
committer | Felix Boerner <ich@felix-boerner.de> | 2024-04-06 18:10:10 +0200 |
commit | 8e3eb5eba73f186b382f564038fa83a3073700bb (patch) | |
tree | a127e5b253bbd60d0e797a4b98ef158d5526cdaf | |
parent | 40104704858f9a90328cc35c07d870d1b2ba1ca1 (diff) |
ci: use makefile for testscommonmark_test
-rw-r--r-- | .github/workflows/test.yml | 12 | ||||
-rw-r--r-- | Makefile | 30 |
2 files changed, 34 insertions, 8 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c0830f4..c553a37 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,8 +50,7 @@ jobs: - name: Run sitespeed.io for example site with image in desktop mode run: | - rm --recursive --force tests/exampleSiteWithImage/sitespeed-result - docker compose --file tests/exampleSiteWithImage/docker-compose.desktop.yml up --exit-code-from sitespeed + make sitespeed-io-example-site-with-image-desktop-mode - name: Upload sitespeed.io result for example site with image in desktop mode uses: actions/upload-artifact@v4 @@ -61,8 +60,7 @@ jobs: - name: Run sitespeed.io for example site with image in mobile mode run: | - rm --recursive --force tests/exampleSiteWithImage/sitespeed-result - docker compose --file tests/exampleSiteWithImage/docker-compose.mobile.yml up --exit-code-from sitespeed + make sitespeed-io-example-site-with-image-mobile-mode - name: Upload sitespeed.io result for example site with image in mobile mode uses: actions/upload-artifact@v4 @@ -72,8 +70,7 @@ jobs: - name: Run sitespeed.io for example site with video in desktop mode run: | - rm --recursive --force tests/exampleSiteWithVideo/sitespeed-result - docker compose --file tests/exampleSiteWithVideo/docker-compose.desktop.yml up --exit-code-from sitespeed + make sitespeed-io-example-site-with-video-desktop-mode - name: Upload sitespeed.io result for example site with video in desktop mode uses: actions/upload-artifact@v4 @@ -83,8 +80,7 @@ jobs: - name: Run sitespeed.io for example site with video in mobile mode run: | - rm --recursive --force tests/exampleSiteWithVideo/sitespeed-result - docker compose --file tests/exampleSiteWithVideo/docker-compose.mobile.yml up --exit-code-from sitespeed + make sitespeed-io-example-site-with-video-mobile-mode - name: Upload sitespeed.io result for example site with video in mobile mode uses: actions/upload-artifact@v4 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9f4eb63 --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +SHELL = /bin/bash +.SHELLFLAGS = -e -o pipefail -c + +.PHONY: hugo-server-example-site-with-image +hugo-server-example-site-with-image: + hugo server --source tests/exampleSiteWithImage --themesDir=../../../ + +.PHONY: hugo-server-example-site-with-video +hugo-server-example-site-with-video: + hugo server --source tests/exampleSiteWithVideo --themesDir=../../../ + +.PHONY: sitespeed-io-example-site-with-image-desktop-mode +sitespeed-io-example-site-with-image-desktop-mode: + rm --recursive --force tests/exampleSiteWithImage/sitespeed-result + docker compose --file tests/exampleSiteWithImage/docker-compose.desktop.yml up --exit-code-from sitespeed + +.PHONY: sitespeed-io-example-site-with-image-mobile-mode +sitespeed-io-example-site-with-image-mobile-mode: + rm --recursive --force tests/exampleSiteWithImage/sitespeed-result + docker compose --file tests/exampleSiteWithImage/docker-compose.mobile.yml up --exit-code-from sitespeed + +.PHONY: sitespeed-io-example-site-with-video-desktop-mode +sitespeed-io-example-site-with-video-desktop-mode: + rm --recursive --force tests/exampleSiteWithVideo/sitespeed-result + docker compose --file tests/exampleSiteWithVideo/docker-compose.desktop.yml up --exit-code-from sitespeed + +.PHONY: sitespeed-io-example-site-with-video-mobile-mode +sitespeed-io-example-site-with-video-mobile-mode: + rm --recursive --force tests/exampleSiteWithVideo/sitespeed-result + docker compose --file tests/exampleSiteWithVideo/docker-compose.mobile.yml up --exit-code-from sitespeed |