From 6ea49bd0db1582cd66084236b369a370ff09ce05 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 26 Nov 2019 01:20:37 +0100 Subject: [PATCH] artifact tests --- .github/workflows/ci.yml | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 276c1d7..e07fcf7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,24 +6,20 @@ jobs: test: runs-on: ubuntu-latest - strategy: - matrix: - node-version: ['10', '12', '13'] - steps: - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node-version }} + - name: Setup Node.js uses: actions/setup-node@v1 with: - node-version: ${{ matrix.node-version }} + node-version: '13.x' - name: Cache node modules uses: actions/cache@v1 with: path: ~/.npm - key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-${{ matrix.node-version }}- + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: ${{ runner.os }}-node- - run: npm ci - run: npm test @@ -31,32 +27,33 @@ jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - node-version: ['10', '12', '13'] - steps: - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node-version }} + - name: Setup Node.js uses: actions/setup-node@v1 with: - node-version: ${{ matrix.node-version }} + node-version: '13.x' - name: Cache node modules uses: actions/cache@v1 with: path: ~/.npm - key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node-${{ matrix.node-version }}- + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: ${{ runner.os }}-node- - name: Cache Gatsby build output uses: actions/cache@v1 with: path: public - key: ${{ runner.os }}-${{ matrix.node-version }}-public + key: ${{ runner.os }}-public - run: npm ci - run: npm run build env: GATSBY_GITHUB_TOKEN: ${{ secrets.GATSBY_GITHUB_TOKEN }} + + - uses: actions/upload-artifact@v1 + with: + name: public + path: public