Use official Docker Actions (#69) #112
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: Integration Test | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Update action.yml to build locally | |
run: | | |
sed -i 's/.*image\:.*/ image\: \"Dockerfile\"/' action.yml | |
cat action.yml | |
- name: Self test | |
id: selftest | |
uses: ./ | |
with: | |
include: "test/**" | |
find: "world" | |
replace: "there" | |
- name: Check outputs and modified files | |
run: | | |
test "${{ steps.selftest.outputs.modifiedFiles }}" == "1" | |
grep "Hello there" test/hello.txt |