Ci: Fix ci for another new machine
This commit is contained in:
1 parent
ca438cb217
commit
f9351ba4c9
1 file changed
+8
-18
@@ -3,24 +3,14 @@ on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
container:
|
||||
image: rust:alpine
|
||||
|
||||
steps:
|
||||
- name: Install Git
|
||||
run: apk add --no-cache git
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
|
||||
- name: Checkout code
|
||||
env:
|
||||
REPO_TOKEN: ${{ secrets.CHECKOUT_TOKEN }}
|
||||
run: |
|
||||
git clone https://oauth2:${{ env.REPO_TOKEN }}@git.rustprogersteam.ru/${{ github.repository }}.git .
|
||||
git checkout ${{ github.sha }}
|
||||
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
|
||||
- name: Test
|
||||
run: cargo test --verbose
|
||||
- name: Test
|
||||
run: cargo test --verbose
|
||||
Reference in new issue
Block a user