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

test-versions.yml « workflows « .github - github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 768bcb8207c29b35c61bea4e8c5bae66c9e1ca66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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 i -g postcss 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