Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictoria Drake <hello@victoria.dev>2020-03-15 03:47:39 +0300
committerVictoria Drake <hello@victoria.dev>2020-03-15 04:00:06 +0300
commit33720a6e04de8736382fcecd420dada55aef6091 (patch)
tree2b35dd849433311aa808631733f394d65e147984 /.github
parenta0578435b647bebb4c82f3b37e8751ca91a7cd10 (diff)
🔨 Use Actions for testing
Removes TravisCI
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test-versions.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/.github/workflows/test-versions.yml b/.github/workflows/test-versions.yml
new file mode 100644
index 0000000..b0fbaf5
--- /dev/null
+++ b/.github/workflows/test-versions.yml
@@ -0,0 +1,42 @@
+name: test-versions
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ hugo: ['0.49.2', '0.50', '0.51', '0.52', '0.53', '0.54.0', '0.55.0', '0.56.0', '0.57.0', '0.58.0', '0.59.0', '0.60.0', '0.61.0', '0.62.0', '0.63.0', '0.64.0', '0.65.0', '0.66.0', '0.67.0']
+
+ fail-fast: true
+
+
+ steps:
+ - uses: actions/checkout@master
+
+ - name: Set up Node
+ uses: actions/setup-node@v1
+ with:
+ node-version: 12.x
+ - name: Install tools
+ run: |
+ sudo apt install curl jq
+ npm install -g postcss-cli autoprefixer
+
+ - name: Test with Hugo ${{ matrix.hugo }}
+ uses: peaceiris/actions-hugo@v2
+ with:
+ hugo-version: ${{ matrix.hugo }}
+ extended: true
+
+ - name: Build with Hugo ${{ matrix.hugo }}
+ run: |
+ cd exampleSite
+ HUGO_THEME="hugo-theme-introduction" hugo --themesDir ../.. -v
+
+ - name: Test HTML from Hugo ${{ matrix.hugo }}
+ run: docker run -v ${GITHUB_WORKSPACE}/public/:/mnt 18fgsa/html-proofer mnt --disable-external \ No newline at end of file