ci: use checkout v2 in actions

This commit is contained in:
Haishan 2020-03-05 09:53:41 +08:00
parent 514a42b2a2
commit 4f0e75f029
3 changed files with 4 additions and 3 deletions

View file

@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Run tests
run: |
@ -34,7 +34,7 @@ jobs:
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Build image
run: docker build . --file Dockerfile --tag image

View file

@ -14,7 +14,7 @@ jobs:
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1

View file

@ -92,6 +92,7 @@ function bindAction(action, dispatch) {
return dispatch(action.apply(this, arguments));
};
}
function bindActions(actions, dispatch) {
const boundActions = {};
for (const key in actions) {