build(deps): bump handlebars from 4.7.3 to 4.7.7 #27
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: build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths-ignore: | |
| - '**.md' | |
| pull_request: | |
| branches: | |
| - master | |
| env: | |
| GOVER: 1.13.7 | |
| jobs: | |
| lint: | |
| name: 'lint example' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'install go ${{ env.GOVER }}' | |
| uses: actions/setup-go@v1.1.2 | |
| with: | |
| go-version: ${{ env.GOVER }} | |
| - name: 'checkout' | |
| uses: actions/checkout@v1 | |
| - name: 'set GOPATH' | |
| # temporary fix | |
| # see https://github.com/actions/setup-go/issues/14 | |
| run: | | |
| echo "##[set-env name=GOPATH;]$(dirname $GITHUB_WORKSPACE)" | |
| echo "##[add-path]$(dirname $GITHUB_WORKSPACE)/bin" | |
| shell: bash | |
| - name: 'install dependencies' | |
| run: make lint-prepare | |
| - name: 'lint example' | |
| run: make lint vet | |
| test: | |
| name: 'test - ${{ matrix.platform }} w/ go ${{ matrix.go-version }}' | |
| runs-on: ${{ matrix.platform }} | |
| strategy: | |
| matrix: | |
| go-version: [1.12.x, 1.13.x] | |
| platform: [ubuntu-latest, macos-latest, windows-latest] | |
| target_arch: [arm64] | |
| steps: | |
| - name: 'install go ${{ matrix.go-version }}' | |
| if: success() | |
| uses: actions/setup-go@v1.1.2 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: 'checkout' | |
| uses: actions/checkout@v1 | |
| - name: 'set GOPATH' | |
| run: | | |
| echo "##[set-env name=GOPATH;]$(dirname $GITHUB_WORKSPACE)" | |
| echo "##[add-path]$(dirname $GITHUB_WORKSPACE)/bin" | |
| shell: bash | |
| - name: 'build example' | |
| run: make build | |
| - name: 'test example' | |
| run: make test | |
| release: | |
| name: 'release example' | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| runs-on: ubuntu-latest | |
| needs: [lint, test] | |
| steps: | |
| - name: 'setup node.js' | |
| uses: actions/setup-node@v1.4.0 | |
| with: | |
| node-version: 12 | |
| - name: 'install go ${{ env.GOVER }}' | |
| uses: actions/setup-go@v1.1.2 | |
| with: | |
| go-version: ${{ env.GOVER }} | |
| - name: 'checkout' | |
| uses: actions/checkout@master | |
| - name: 'install dependencies' | |
| run: npm ci | |
| - name: 'generate semantic version' | |
| run: npx semantic-release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |