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:
|
jobs:
|
||||||
build-and-test:
|
build-and-test:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
container:
|
|
||||||
image: rust:alpine
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install Git
|
- name: Checkout code
|
||||||
run: apk add --no-cache git
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: cargo build --verbose
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Test
|
||||||
env:
|
run: cargo test --verbose
|
||||||
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
|
|
||||||
Reference in new issue
Block a user