checkout/.github/workflows/test.yml

32 lines
725 B
YAML
Raw Permalink Normal View History

name: Build and Test
2019-12-11 09:04:38 +07:00
on: push
jobs:
2019-12-11 09:01:08 +07:00
test-archive:
runs-on: windows-latest
steps:
# Clone this repo
- name: Checkout
shell: bash
2019-12-10 04:54:42 +07:00
run: |
curl --location --user token:${{ github.token }} --output checkout.tar.gz https://api.github.com/repos/actions/checkout/tarball/${{ github.sha }}
tar -xzf checkout.tar.gz
mv */* ./
# Basic checkout
2019-12-11 09:09:20 +07:00
- shell: cmd
run: |
echo echo hello > git.cmd
echo ::add-path::%CD%
2019-12-10 04:54:42 +07:00
- name: Basic checkout
uses: ./
with:
ref: test-data/v2/basic
path: basic
- name: Verify basic
2019-12-11 09:01:08 +07:00
shell: bash
2019-12-10 04:54:42 +07:00
run: __test__/verify-basic.sh container
2019-12-11 09:03:55 +07:00