Skip to content

Commit

Permalink
Update tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nbareil authored Jul 26, 2024
1 parent bb6c79e commit 2a30238
Showing 1 changed file with 2 additions and 31 deletions.
33 changes: 2 additions & 31 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,11 @@ jobs:
fi
- uses: cachix/install-nix-action@v27

- name: "Install the deploy key"
env:
DEPLOY_KEY: "${{ secrets.DEPLOY_KEY }}"
run: |
mkdir -p ~/.ssh
ssh_agent_vars=$(ssh-agent -s)
eval "$ssh_agent_vars"
echo "$ssh_agent_vars" | fgrep '=' | cut -d';' -f1 >> "$GITHUB_ENV"
echo "$DEPLOY_KEY" | ssh-add -
ssh-keyscan github.cert.corp >> ~/.ssh/known_hosts
cat ~/.ssh/known_hosts | sort -u > ~/.ssh/known_hosts.new
mv ~/.ssh/known_hosts.new ~/.ssh/known_hosts
- name: "Build nix-shell derivation"
run: nix-build shell.nix

tests:
runs-on: [ Linux, self-hosted ]
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
Expand All @@ -49,22 +35,7 @@ jobs:
if [ -d "/nix/var/nix/profiles/default/bin" ]; then
echo "/nix/var/nix/profiles/default/bin" > "$GITHUB_PATH"
fi
- uses: CERT/install-nix-action@v25

- name: "Install the deploy key"
env:
DEPLOY_KEY: "${{ secrets.DEPLOY_KEY }}"
run: |
mkdir -p ~/.ssh
ssh_agent_vars=$(ssh-agent -s)
eval "$ssh_agent_vars"
echo "$ssh_agent_vars" | fgrep '=' | cut -d';' -f1 >> "$GITHUB_ENV"
echo "$DEPLOY_KEY" | ssh-add -
ssh-keyscan github.cert.corp >> ~/.ssh/known_hosts
cat ~/.ssh/known_hosts | sort -u > ~/.ssh/known_hosts.new
mv ~/.ssh/known_hosts.new ~/.ssh/known_hosts
- uses: cachix/install-nix-action@v27
- name: "Run test suite"
run: |
cd tests
Expand Down

0 comments on commit 2a30238

Please sign in to comment.