Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: actions/checkout
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.0
Choose a base ref
...
head repository: actions/checkout
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.1.0
Choose a head ref

Commits on Dec 13, 2019

  1. add more scenarios (#112)

    ericsciple authored Dec 13, 2019
    Copy the full SHA
    299dd50 View commit details

Commits on Dec 16, 2019

  1. Copy the full SHA
    c85684d View commit details

Commits on Jan 2, 2020

  1. improve summary (#127)

    ericsciple authored Jan 2, 2020
    Copy the full SHA
    f466b96 View commit details

Commits on Jan 3, 2020

  1. Copy the full SHA
    ae525b2 View commit details
  2. 2.0.1 (#129)

    ericsciple authored Jan 3, 2020
    Copy the full SHA
    dfd70d4 View commit details
  3. Copy the full SHA
    bc50a99 View commit details
  4. Copy the full SHA
    db41740 View commit details

Commits on Jan 21, 2020

  1. Copy the full SHA
    090d9c9 View commit details

Commits on Jan 27, 2020

  1. Copy the full SHA
    f90c7b3 View commit details
  2. Update test.yml

    ericsciple authored Jan 27, 2020
    Copy the full SHA
    f95f2a3 View commit details

Commits on Feb 13, 2020

  1. Copy the full SHA
    61fd8fd View commit details
  2. checkout v2 adr (#153)

    ericsciple authored Feb 13, 2020
    Copy the full SHA
    06218e4 View commit details
  3. Handle submodules with SSH URLs (#140)

    * Handle submodules with SSH URLs
    
    This is just a documentation change, explaining how to fix submodules
    that are configured to use SSH URLs instead of HTTPS URLs. Spent a while
    banging my head on the wall and hope this saves someone else the pain.
    
    This is helpful for teams that use the SSH protocol for local
    development so don't want to change the mechanism that pulls in the
    submodules. Using `insteadOf` seems a bit nicer than than setting up a
    deploy keypair.
    
    * SSH submodules
    
    Co-authored-by: Chris Patterson <chrispat@github.com>
    csexton and chrispat authored Feb 13, 2020
    Copy the full SHA
    77904fd View commit details
  4. Copy the full SHA
    f858c22 View commit details

Commits on Feb 25, 2020

  1. Copy the full SHA
    096e927 View commit details

Commits on Mar 2, 2020

  1. Copy the full SHA
    f219062 View commit details

Commits on Mar 4, 2020

  1. Copy the full SHA
    2046202 View commit details

Commits on Mar 5, 2020

  1. Copy the full SHA
    422dc45 View commit details

Commits on Mar 6, 2020

  1. 2
    Copy the full SHA
    b4626ce View commit details

Commits on Mar 10, 2020

  1. Copy the full SHA
    80602fa View commit details

Commits on Mar 11, 2020

  1. add ssh support (#163)

    ericsciple authored Mar 11, 2020
    Copy the full SHA
    b2e6b7e View commit details

Commits on Mar 12, 2020

  1. persist core.sshCommand for submodules (#184)

    * persist core.sshCommand for submodules
    
    * update verbiage; add comments
    
    * fail when submodules or ssh-key and fallback to REST API
    ericsciple authored Mar 12, 2020
    Copy the full SHA
    9a3a9ad View commit details

Commits on Mar 19, 2020

  1. Copy the full SHA
    58070a9 View commit details

Commits on Mar 20, 2020

  1. 1
    Copy the full SHA
    fbb30c6 View commit details
  2. update readme

    ericsciple committed Mar 20, 2020
    Copy the full SHA
    574281d View commit details

Commits on Mar 25, 2020

  1. 3
    Copy the full SHA
    85b1f35 View commit details

Commits on Mar 27, 2020

  1. group output (#191)

    ericsciple authored Mar 27, 2020
    Copy the full SHA
    01aeccc View commit details
130 changes: 118 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -11,13 +11,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1 # todo: switch to v2
- uses: actions/setup-node@v1
with:
node-version: 12.x
- uses: actions/checkout@v2
- run: npm ci
- run: npm run build
- run: npm run format-check
- run: npm run lint
- run: npm run pack
- run: npm run gendocs
- run: npm test
- name: Verify no unstaged changes
run: __test__/verify-no-unstaged-changes.sh
@@ -34,7 +35,7 @@ jobs:
uses: actions/checkout@v2

# Basic checkout
- name: Basic checkout
- name: Checkout basic
uses: ./
with:
ref: test-data/v2/basic
@@ -47,7 +48,7 @@ jobs:
- name: Modify work tree
shell: bash
run: __test__/modify-work-tree.sh
- name: Clean checkout
- name: Checkout clean
uses: ./
with:
ref: test-data/v2/basic
@@ -57,12 +58,12 @@ jobs:
run: __test__/verify-clean.sh

# Side by side
- name: Side by side checkout 1
- name: Checkout side by side 1
uses: ./
with:
ref: test-data/v2/side-by-side-1
path: side-by-side-1
- name: Side by side checkout 2
- name: Checkout side by side 2
uses: ./
with:
ref: test-data/v2/side-by-side-2
@@ -72,7 +73,7 @@ jobs:
run: __test__/verify-side-by-side.sh

# LFS
- name: LFS checkout
- name: Checkout LFS
uses: ./
with:
repository: actions/checkout # hardcoded, otherwise doesn't work from a fork
@@ -83,16 +84,121 @@ jobs:
shell: bash
run: __test__/verify-lfs.sh

test-job-container:
# Submodules false
- name: Checkout submodules false
uses: ./
with:
ref: test-data/v2/submodule-ssh-url
path: submodules-false
- name: Verify submodules false
run: __test__/verify-submodules-false.sh

# Submodules one level
- name: Checkout submodules true
uses: ./
with:
ref: test-data/v2/submodule-ssh-url
path: submodules-true
submodules: true
- name: Verify submodules true
run: __test__/verify-submodules-true.sh

# Submodules recursive
- name: Checkout submodules recursive
uses: ./
with:
ref: test-data/v2/submodule-ssh-url
path: submodules-recursive
submodules: recursive
- name: Verify submodules recursive
run: __test__/verify-submodules-recursive.sh

# Basic checkout using REST API
- name: Remove basic
if: runner.os != 'windows'
run: rm -rf basic
- name: Remove basic (Windows)
if: runner.os == 'windows'
shell: cmd
run: rmdir /s /q basic
- name: Override git version
if: runner.os != 'windows'
run: __test__/override-git-version.sh
- name: Override git version (Windows)
if: runner.os == 'windows'
run: __test__\\override-git-version.cmd
- name: Checkout basic using REST API
uses: ./
with:
ref: test-data/v2/basic
path: basic
- name: Verify basic
run: __test__/verify-basic.sh --archive

test-proxy:
runs-on: ubuntu-latest
container: alpine:latest
container:
image: alpine/git:latest
options: --dns 127.0.0.1
services:
squid-proxy:
image: datadog/squid:latest
ports:
- 3128:3128
env:
https_proxy: http://squid-proxy:3128
steps:
# Clone this repo
- name: Checkout
uses: actions/checkout@v2

# Basic checkout
- name: Basic checkout
# Basic checkout using git
- name: Checkout basic
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

test-bypass-proxy:
runs-on: ubuntu-latest
env:
https_proxy: http://no-such-proxy:3128
no_proxy: api.github.com,github.com
steps:
# Clone this repo
- name: Checkout
uses: actions/checkout@v2

# Basic checkout using git
- name: Checkout basic
uses: ./
with:
ref: test-data/v2/basic
path: basic
- name: Verify basic
run: __test__/verify-basic.sh
- name: Remove basic
run: rm -rf basic

# Basic checkout using REST API
- name: Override git version
run: __test__/override-git-version.sh
- name: Checkout basic using REST API
uses: ./
with:
ref: test-data/v2/basic
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
__test__/_temp
lib/
node_modules/
Loading