@@ -10,34 +10,21 @@ jobs:
1010 runs-on : ubuntu-latest
1111 steps :
1212 - name : Checkout the repository
13- uses : actions/checkout@v2
13+ uses : actions/checkout@v4
1414 with :
1515 fetch-depth : 1000
1616 submodules : recursive
1717 # ------------------------------------------------------------------------------
1818 # Checkout slic
1919 # ------------------------------------------------------------------------------
2020 - name : Checkout slic
21- uses : actions/checkout@v2
21+ uses : actions/checkout@v4
2222 with :
2323 repository : stellarwp/slic
2424 ref : main
2525 path : slic
2626 fetch-depth : 1
27- # ------------------------------------------------------------------------------
28- # Prepare our composer cache directory
29- # ------------------------------------------------------------------------------
30- - name : Get Composer Cache Directory
31- id : get-composer-cache-dir
32- run : |
33- echo "::set-output name=dir::$(composer config cache-files-dir)"
34- - uses : actions/cache@v2
35- id : composer-cache
36- with :
37- path : ${{ steps.get-composer-cache-dir.outputs.dir }}
38- key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
39- restore-keys : |
40- ${{ runner.os }}-composer-
27+
4128 # ------------------------------------------------------------------------------
4229 # Initialize slic
4330 # ------------------------------------------------------------------------------
@@ -46,14 +33,17 @@ jobs:
4633 echo "SLIC_BIN=${GITHUB_WORKSPACE}/slic/slic" >> $GITHUB_ENV
4734 echo "SLIC_WP_DIR=${GITHUB_WORKSPACE}/slic/_wordpress" >> $GITHUB_ENV
4835 echo "SLIC_WORDPRESS_DOCKERFILE=Dockerfile.base" >> $GITHUB_ENV
36+
4937 - name : Set run context for slic
5038 run : echo "SLIC=1" >> $GITHUB_ENV && echo "CI=1" >> $GITHUB_ENV
5139 - name : Start ssh-agent
5240 run : |
5341 mkdir -p "${HOME}/.ssh";
5442 ssh-agent -a /tmp/ssh_agent.sock;
43+
5544 - name : Export SSH_AUTH_SOCK env var
5645 run : echo "SSH_AUTH_SOCK=/tmp/ssh_agent.sock" >> $GITHUB_ENV
46+
5747 - name : Set up slic for CI
5848 run : |
5949 cd ${GITHUB_WORKSPACE}/..
6555 ${SLIC_BIN} debug on
6656 ${SLIC_BIN} info
6757 ${SLIC_BIN} config
58+
6859 - name : Set up StellarWP Schema
6960 run : |
7061 ${SLIC_BIN} use schema
7162 ${SLIC_BIN} composer install --ignore-platform-reqs
63+
7264 - name : Run suite tests
7365 run : ${SLIC_BIN} run ${{ matrix.suite }} --ext DotReporter
0 commit comments