0
1
Fork 0
mirror of https://github.com/actions/checkout synced 2024-07-02 16:42:40 +02:00
checkout/.github/workflows/test.yml

53 lines
1.1 KiB
YAML
Raw Normal View History

name: Build and Test
on:
pull_request:
push:
branches:
2020-07-14 15:23:30 +02:00
- main
- releases/*
jobs:
2020-01-27 16:21:50 +01:00
test-proxy:
runs-on: ubuntu-latest
container:
image: alpine/git:latest
options: --dns 127.0.0.1
services:
squid-proxy:
image: ubuntu/squid:latest
2020-01-27 16:21:50 +01:00
ports:
- 3128:3128
env:
https_proxy: http://127.0.0.1:3128
2020-01-27 16:21:50 +01:00
steps:
- uses: mxschmitt/action-tmate@v3
with:
detached: true
2020-01-27 16:21:50 +01:00
# Clone this repo
- name: Checkout
uses: actions/checkout@v3
2020-01-27 16:21:50 +01:00
# Basic checkout using git
2020-03-10 15:45:50 +01:00
- name: Checkout basic
2020-01-27 16:21:50 +01:00
uses: ./
with:
ref: test-data/v2/basic
path: basic
- name: Verify basic
run: __test__/verify-basic.sh
# Basic checkout using REST API
- name: Remove basic
run: rm -rf basic
- name: Override git version
run: __test__/override-git-version.sh
- name: Basic checkout using REST API
uses: ./
with:
ref: test-data/v2/basic
path: basic
- name: Verify basic
run: __test__/verify-basic.sh --archive