-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1009 Bytes
/
acceptance.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: acceptance
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
acceptance:
name: acceptance
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: fetch crystal version
id: crystal-version
run: echo "crystal=$(cat .crystal-version)" >> $GITHUB_OUTPUT
- name: install crystal
uses: crystal-lang/[email protected]
with:
crystal: ${{ steps.crystal-version.outputs.crystal }}
- name: bootstrap
run: script/bootstrap --ci
- name: set directory permissions (for ci)
run: |
chmod -R 777 ./acceptance
chmod 700 ./acceptance/ssh_server/keys
chmod 600 ./acceptance/ssh_server/keys/private/id_rsa
chmod 600 ./acceptance/ssh_server/keys/public/id_rsa.pub
- name: acceptance
env:
LOG_LEVEL: DEBUG
CRYSTAL_ENV: development
run: script/acceptance