name: Build and test

on:
  push:
    branches: [master]
  pull_request:
    branches: [master]

jobs:
  build-and-test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [10.x, 12.x, 14.x]

    steps:
      - uses: actions/checkout@v2
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}
      - run: |
          sudo chmod 755 /home/runner
          sudo chmod 755 -R /usr/share
          sudo chmod 755 -R /opt/hostedtoolcache/node/10.23.0/x64/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin
          script/ci/build-and-test.sh
        env:
          NODE_VERSION: ${{ matrix.node-version }}

name: Build and test

on:
  push:
    branches: [master]
  pull_request:
    branches: [master]

jobs:
  build-and-test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [10.x, 12.x, 14.x]

    steps:
      - uses: actions/checkout@v2
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}
      - run: |
          sudo chmod 755 /home/runner
          sudo chmod 755 -R /usr/share
          sudo chmod 755 -R /opt/hostedtoolcache/node
          script/ci/build-and-test.sh
        env:
          NODE_VERSION: ${{ matrix.node-version }}

Add more folders to changed permissions list
chore(ci): Add more folders to changed permissions list
