Update deprecated items #46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test-versions | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| hugo: ['0.135.0', '0.136.5', '0.137.1', '0.138.0'] | |
| fail-fast: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: lts/* | |
| - 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@v3 | |
| with: | |
| hugo-version: ${{ matrix.hugo }} | |
| extended: true | |
| - name: Update Submodules to Latest | |
| run: | | |
| git submodule update --init --recursive --remote | |
| - name: Build with Hugo ${{ matrix.hugo }} | |
| run: | | |
| cd exampleSite && HUGO_THEME="hugo-theme-sam" hugo --themesDir ../.. | |
| - name: Test HTML from Hugo ${{ matrix.hugo }} | |
| run: docker run -v ${GITHUB_WORKSPACE}/public/:/mnt 18fgsa/html-proofer mnt --disable-external |