Skip to content

Commit 798319f

Browse files
committed
Reorder AtoM Github action steps
1 parent 9f6899f commit 798319f

File tree

1 file changed

+32
-13
lines changed

1 file changed

+32
-13
lines changed

.github/workflows/oidc-integration-test.yml

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,19 @@ jobs:
1919
steps:
2020
- name: Check out code
2121
uses: actions/checkout@v3
22+
2223
- name: Start containerized services
2324
run: |
2425
sudo sysctl -w vm.max_map_count=262144
2526
docker compose -p ci up -d percona elasticsearch gearmand
27+
2628
- name: Set CI-specific Realm File
2729
run: echo "REALM_FILE=../test/etc/keycloak/realm.json" >> $GITHUB_ENV
30+
2831
- name: Launch Keycloak service
2932
run: |
3033
docker compose -p ci -f ${{ github.workspace }}/docker/docker-compose.keycloak.yml up -d
34+
3135
- name: Wait for Keycloak to be Ready
3236
run: |
3337
echo "Waiting for Keycloak to be ready..."
@@ -39,42 +43,51 @@ jobs:
3943
echo "Waiting for Keycloak..."
4044
sleep 5
4145
done
46+
4247
- name: Setup PHP
4348
uses: shivammathur/setup-php@v2
4449
with:
4550
php-version: 7.4
4651
coverage: none
4752
extensions: apcu, opcache
53+
4854
- name: Setup PHP-FPM
4955
run: |
5056
sudo apt install php7.4-fpm
5157
sudo service php7.4-fpm start
58+
5259
- name: Cache Composer dependencies
5360
uses: actions/cache@v3
5461
with:
5562
path: ~/.composer/cache/files
5663
key: 20.04-7.4-composer-${{ hashFiles('composer.lock') }}
64+
5765
- name: Install Composer dependencies
5866
run: composer install
67+
5968
- name: Cache NPM dependencies
6069
uses: actions/cache@v3
6170
with:
6271
path: |
6372
~/.npm
6473
~/.cache/Cypress
6574
key: npm-${{ hashFiles('package-lock.json') }}
75+
6676
- name: Install NPM dependencies
6777
run: sudo npm install -g npm && npm ci
78+
6879
- name: Modify Gearman config
6980
run: |
7081
echo -e "all:\n servers:\n default: 127.0.0.1:63005" \
7182
> apps/qubit/config/gearman.yml
83+
7284
- name: Build themes
7385
run: |
7486
sudo npm install -g "less@<4.0.0"
7587
make -C plugins/arDominionPlugin
7688
make -C plugins/arArchivesCanadaPlugin
7789
npm run build
90+
7891
- name: Run the installer
7992
run: |
8093
php symfony tools:install \
@@ -88,19 +101,7 @@ jobs:
88101
--search-index=atom \
89102
--demo \
90103
--no-confirmation
91-
- name: Update OIDC plugin app.yml file
92-
run: sudo cp test/etc/oidc/arOidcPlugin/config/app.yml plugins/arOidcPlugin/config
93-
- name: Update factories.yml to use oidcUser
94-
run: |
95-
sudo sed -i 's/class: myUser/class: oidcUser/' config/factories.yml
96-
- name: Install OIDC Plugin
97-
run: |
98-
php symfony tools:atom-plugins add arOidcPlugin
99-
- name: Clear Symfony cache
100-
run: |
101-
php symfony cc
102-
- name: Change filesystem permissions
103-
run: sudo chown -R www-data:www-data ${{ github.workspace }}
104+
104105
- name: Start application services
105106
run: |
106107
sudo cp test/etc/fpm_conf /etc/php/7.4/fpm/pool.d/atom.conf
@@ -120,6 +121,24 @@ jobs:
120121
sudo nginx -t
121122
sudo systemctl restart nginx
122123
124+
- name: Update OIDC plugin app.yml file
125+
run: sudo cp test/etc/oidc/arOidcPlugin/config/app.yml plugins/arOidcPlugin/config
126+
127+
- name: Update factories.yml to use oidcUser
128+
run: |
129+
sudo sed -i 's/class: myUser/class: oidcUser/' config/factories.yml
130+
131+
- name: Install OIDC Plugin
132+
run: |
133+
php symfony tools:atom-plugins add arOidcPlugin
134+
135+
- name: Clear Symfony cache
136+
run: |
137+
php symfony cc
138+
139+
- name: Change filesystem permissions
140+
run: sudo chown -R www-data:www-data ${{ github.workspace }}
141+
123142
- name: Create writable Cypress videos and screenshots dirs
124143
run: |
125144
sudo mkdir -p ${{ github.workspace }}/cypress/screenshots ${{ github.workspace }}/cypress/videos

0 commit comments

Comments
 (0)