Add test projects which test the 'future' config option
This commit is contained in:
@@ -155,3 +155,50 @@ jobs:
|
||||
run: |
|
||||
./bin/compare_expected_output ./test_projects/${{env.TEST_NAME}}
|
||||
|
||||
test-future-false:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TEST_NAME: future-false
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Render Action Metadata
|
||||
run: |
|
||||
./bin/render_action_metadata Dockerfile > action.yml
|
||||
|
||||
- name: Test ${{ env.TEST_NAME }} Project
|
||||
uses: ./
|
||||
with:
|
||||
source: ./test_projects/${{ env.TEST_NAME }}
|
||||
destination: ./test_projects/${{ env.TEST_NAME }}/_site
|
||||
build_revision: JEKYLL_BUILD_REVISION
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Verify output
|
||||
run: |
|
||||
./bin/compare_expected_output ./test_projects/${{env.TEST_NAME}}
|
||||
|
||||
test-future-true:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TEST_NAME: future-true
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Render Action Metadata
|
||||
run: |
|
||||
./bin/render_action_metadata Dockerfile > action.yml
|
||||
|
||||
- name: Test ${{ env.TEST_NAME }} Project
|
||||
uses: ./
|
||||
with:
|
||||
source: ./test_projects/${{ env.TEST_NAME }}
|
||||
destination: ./test_projects/${{ env.TEST_NAME }}/_site
|
||||
build_revision: JEKYLL_BUILD_REVISION
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Verify output
|
||||
run: |
|
||||
./bin/compare_expected_output ./test_projects/${{env.TEST_NAME}}
|
||||
|
||||
Reference in New Issue
Block a user