Convert age matcher to use a duration config (#159) #210
This file contains 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 and test | |
on: | |
pull_request: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: "1.18" | |
check-latest: true | |
cache: true | |
- name: Build | |
run: make build | |
- name: Test | |
run: make test | |
- name: Run local action | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
INPUT_CONFIG_PATH: ./.github/labeler.yml | |
INPUT_FAIL_ON_ERROR: true | |
run: ./action | |
- name: Check that the docker image builds | |
run: docker build . -t local |