Skip to content

ci: change trigger & update uses local action #12

ci: change trigger & update uses local action

ci: change trigger & update uses local action #12

Workflow file for this run

name: Integration Test
on: [push, pull_request]
jobs:
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Self test
id: selftest
uses: ./
with:
modfile: go.mod
- name: Check outputs
run: |
test "${{ steps.selftest.outputs.go_version }}" == "1.22.0"
test "${{ steps.selftest.outputs.go_module }}" == "github.com/pawndev/go-modfile-information"
- name: Self test two digits format
id: selftest_two_digits
uses: ./
with:
modfile: tests/two-digits.go.mod
- name: Check outputs
run: |
test "${{ steps.selftest_two_digits.outputs.go_version }}" == "1.21"
test "${{ steps.selftest_two_digits.outputs.go_module }}" == "github.com/pawndev/go-modfile-information"